I think it's a good idea to let the user set regex as mask. This way, the masked text field will be more generic and it can handle more use cases.