How does the InputField.CharacterValidation.EmailAddress work?

I have a string that’s supposed to be validated as an email address, and an input field where the user enters the email address. I’m not sure how and at which point to check if the input is a valid email address because it’s not working.

Check the docs:

“Note that the character validation does not validate the entire string as being a valid email address since it only does validation on a per-character level, resulting in the typed character either being added to the string or not”