Regex case transform does not work

This has been reported here
and here

It was suggested to report this as a bug on this forum, as the solutions in the other threads don’t seem to work.

How to reproduce:
Make sure the document has a word in braces such as {word}.
Upon compile create the following replacement pattern using regex:
{(\w+)} to be replaced with \U$1

The output is Uword but should be WORD

This is on a Mac running ElCapitan 10.11.6.

Thank you!