errors when using Pattern annotation for form validatpon

image.png
image.png

Does the @Pattern annotation apply to hilla?
It’s just that if it’s related to java, I don’t think it’s possible to do that. Here probably only through a setter.