.NET Core 8.0 RegularExpression attribute always shows default error message
This is my controller action method, I am trying to validate a string using Regular Expressions, the condition works but it always shows the default error message instead of the custom message.