Add regex_type validation.