Good development practice is to test everything in non-production and only promote working configurations into production. In highly regulated environments is it not unusual to perfom unit, ...
When using email as username feature, it uses username regex value of following property when self registering the user through account recovery endpoint webapps. Following code of checkUserNameValid ...