Not sure I understand the question, according to documentation and help text "Restrict creation to domains" means only users with emails verified with the domain (e.g. @company.com) are able to create user accounts or teams.
This shouldn't affect the name you choose for your teams.
Please share repro steps and which version you're using if there is still an issue?