I'm new to python I got a question that might be easy but i can't get it.
i wanted to make aprogram that user gives email as username and password as password ,the program should check if email is in corect format and if its not it **should print something and get email again** so i used regex (Im giving this inputs to database and i thought using LIKE query but i don't think that might help)

so whats the problem with my code?!it keeps wrong email

```
import re

regex = r'\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b'
def check(email):
    if (re.fullmatch(regex, email)):

        return

    else:
        print("corect format is like amireza@gmail.com")
        return

while __name__ == '__main__':

    username = input()
    check(username)

password = input()

```