Email validation using regex for Forgot Password screen

Hello,
I am trying to add pattern validation to the email field on Forgot Password(reset-credentials) screen. Currently input field accepts any invalid email string.
Does Keycloak realm has any setting that can add this functionality?

Have you already tried to set a proper password policy? There‘s a regex policy…

But I need to add validation for email and not for password. Currently, it accepts “XYZ” as an email. Also, the log shows below warning:
WARN [org.keycloak.events] (executor-thread-0) type=RESET_PASSWORD_ERROR, realmId=, clientId=confidential, userId=null, ipAddress=, error=user_not_found, auth_method=openid-connect, auth_type=code, redirect_uri=uri, code_id=, username=1234345

Oh, sorry, I misread this.