RegexValidator don`t work with ] and \

Hi, i try to allow \ and ] but when i add something like this


Validation stops working completely
If you remove ] then everything works but \ does not pass validation

I tried to add these characters via unicode but the result is the same

There is probably some other problem with the RegEx as the following seems to work:

<RadzenRegexValidator Pattern="[^\]]" />

The validator does not allow entering ].

<RadzenRegexValidator Pattern="[^\\]]" />

this code to allow just ]