How to use regex pattern for text attributes

In text

Please send more details that may help to detect or reproduce this issue (e.g., a link to your site, screenshots, or the error message you get).

what is the usage except telephone number
for example in a text field
any example

Please check this topic How to add phone number in a proper format | HivePress Support

Also, it is possible to test changes in regex here https://www.phpliveregex.com/

If you are not familiar with the code customization, then please consider hiring someone for custom work https://fvrr.co/32e7LvY