Make sure you don't have duplicate color names; your current regex has some duplicates -- maroon, black and etc.

You should also have checking for word boundary and hyphenated word in the new utils file by moving the code from Quick View extension.