It fixes #20516. The chars `*{}()[]\` are punctuation signs in regex, so they need to be escaped when searching for them literally.