Computing forbidden words of regular languages