Unable to use Matcher methods

I am able to match things using regular expressions, but I am unable to determine if the match was successful because something in smarttthings seems to be blocking me:

error: Invoking methods on class java.util.regex.Matcher is not allowed

Why is that?

this one has been 4+ years and it still does not work nor is there a response from ST. in searching on the forum there are multiple variations of this question and none of them have a response from ST.

could someone from @SmartThings please address why this does not work and whats the plan to fix?

thank you.