Condense hex regex and check for word boundaries.

This prevents the `red` in tired from getting highlighted.