Filter Variable to Escape Regular Expression Special Characters

So I have been trying the above and it doesnt work for me.

I have variables with text in it, the text often has what are regular expression escape characters in them, like "+" "=" "(" and ")".

If my text/variable doesnt have these characters, my macro's regular expression search/replace commands work great! If they do have those characters, my macro breaks.

I need to perform regular expression search/replace functions on these variables but without getting rid of those special characters as they are important text.

What is the best way to handle this? My brute force thought is to first convert the text to have easy to identify tags for the special characters. Like to do a non-regex find/replace for "(" and replace it with TAGLEFTPAREN. Do my regex operation. And then find/replace the TAGLEFTPAREN back with "(".

This seems highly inelegant, so I'm hoping there is an easier way to ask KM to auto-magically to do this.

Thanks for any help!