A couple of years ago I think I saw a frontend library that warned the user / auto-fixed those typos, but I can't remember its name, and all I can find now are SaaS offers for that kind of service.
Which I'm not entirely enthusiastic about as it leaks all user emails to some random service.