Possible direction:
choose Main menu / Tools / Options / IDE Options (window) / Editor /Display / User defined markup and then at right panel - "Add list" (i.e. "My list 1") and add "keywords" like [test], [anything], something, and so on ... .
Colour for "keywords" is defined as Foreground and then you can have [test]
I cannot see possibility to use wildcards like [prefix*] or *suffix or prefix*suffix.
Somebody can try it some day. However this can be prone to errors - imagine keyword "[ * ]" and somewhere in the source single square bracket "[" waiting to find "]" with thousands characters between.
Attention - a feature is rather at beta state, backup your Lazarus config first.