I have written a custom attribute. In the error message I have special characters. due to these special characters, ValidationAttribute.FormatErrorMessage(GetDisplayName()) throwing Input string was not in a correct format error.
My error message is @"Your characters should be in: ^_{}~".
How can I fix this issue?