Ah, it was that. I should either drink more coffee or bang my head against a wall hahaha.
And sure, what I'm trying to do is to format the phone number input by an user. Its merely for aesthetics, so the user can see if their phone number is correct or not.
Underneath, we save the phone number as string and use it to connect to an external app.
Then, in our server, we connect with the app using something like this: