Corrected syntax error in regex pattern that caused 3 word categories to be captured incorrectly