Fix hang in replace all when the query contains non-ASCII text and regex-special characters (#54422)

Closes #54331
Updates #50848

Release Notes:

- Fixed hang in replace all when the query contained non-ASCII text and
regex-special characters
c97442029aConrad Irwin committed on 4/22/2026, 4:47:52 PM· committed by GitHubparentbcf4c71
2 files changedLine totals unavailable