Yes, that would be great if you could find a way…
In fact, may be any coloring or other stuff could be specified by a regex.
EDIT: There are also other cases where the coloring/syntax is wrongly interpreted. For example, when a Perl scalar is named ‘$pos’, the ‘pos’ part is colored red, being (also!) a standard Perl function. But here it is a scalar identifier, and it should have been colored blue. And yes, indeed, a RegEx looking for a Perl “sigil” ($, \%, @, & and more) concatenated with “w” will always color it as an identifier.