Passwordless login, phone input, add custom regex validation

Hi, i’m using the passwordless option (lock passwordless) of login (phone → sms → code), i can’t find where i can add custom validation to phone input (regex) or where i can see the default validation rules for this input like length, no letters allowed, etc… PLEASE HELP.