How about the string function isMatch?
You can call this function in a microflow and check if the string is matching your regular expression:
isMatch($yourvariable, '^([0-9]+)$')
I use it all the time, works like charm.
all you need here is to create a constant and set its value to your regex, then you can use isMatch($yourvariable, constant value) into your MF