How To Do These RegEx Replacements on the Clipboard?

The problem isn't the regex, it's in how your expressions are getting parsed from the text variable into the action's regex fields. So hard-coding works as expected:

I don't have an answer, but at least that'll stop you chasing the wrong problem!