Fixes the validation error message for regex validation rule