The Validated Field add-on for Advanced Custom Fields provides input masking and validation of other field types.