FIX: Performance issue with escaped brackets `\]`

Thanks for accepting yesterday's performance PR. A user reported another issue, when you have many `[\][\][\][\]` in a row it would also peg a core.

This fix prevents that from happening while still supporting escaped brackets properly. Again passes all tests, works in Discourse and mdtest.