The default regular expressions on IMSS, "\sWORD\s", will only be triggered when IMSS finds an exact match "<space>WORD<space>".
Expressions such as "word!", "word?", "word!" and other words that end with a punctuation mark will not match the regular expression.
If you want to block the words above, you may use the following regular expression:
|b||(in the beginning and end) means word boundary or whole word matching. This is different from \s, which matches a white space.|
|WORD||is the target word. IMSS is not case sensitive by default so it will match any combination of uppercase and lowercase letters.|
|[!,;:\./?]||is the bracket that contains choices of characters specifically punctuations. Regex will match anything that is inside [ ]. [ ] represents only one character.|
|+||means any number of the preceding character (that means those inside the [ ])|