Currently, when you want to make sure that an entry in a glossary for non-translatables is treated as a (whole) word, you have to wrap the entry with the regular expression for word boundary (\b).
Would it be possible to add one more checkbox to the glossary resource definition:
☑ Whole words only
You don't need to add anything unless you create a regular expression. Just place the entry in your non-translatable glossary without any additional flags (e.g. without a pipe that tells the program it is a regular expression).