We use the Google Phone Library and talk to it with a Java Action. This caters for every nation’s phone numbers as everyone seems to have a different format.
I believe there is a module on the Marketplace, but we rolled our own as we needed different functionality.
https://marketplace.mendix.com/link/component/20876