Hi,
Can you please share the details that you given for custom mask input, as you mentioned I tried to create and it's working fine, for your reference I have attached OML,
Have a look here - https://komal-k.outsystemscloud.com/CustomMaskDemo/Demo.aspx
Regards,
Komal