All personal names are valid.
It’s not hard to make software which accepts arbitrary strings for names. In fact, you have to go out of your way to add this sort of misguided validation to a field that was perfectly fine without any.
Presuming that some characters don’t belong in names is inextricably rooted in colonialism. Making someone type their name in some weird, inauthentic way in order to put it into your fucking software is racist.
Seriously, cut this shit out already.
See also the wonderful yournameisinvalid@mas.to, who raised awareness about this for years on Twitter before making the switch to Mastodon.