There is little difference. Backet outside of string is a symbol, bracket inside string is simple another char in string. Another problem with regular expressions are escaped brackets, some expression inside strings what are executed e.t.c. I can't imagine how should be able to evaluate all eventualities to find matching bracket.
-- <https://forum.pspad.com/read.php?2,76241,76242> PSPad freeware editor https://www.pspad.com