Refs #17735 - Handle matching when text position changed in paragraph

- Match text even if its position in paragraph has changed
- Handle special chars like parentheses within commented text