fn check_profile_key(name: &str) -> ResultExpand description
Validate a profile field name against the Common Namespaced Identifier
Grammar: a lowercase-leading identifier over [a-z0-9_.-], matching the
reference homeserver. Length is bounded separately by MAX_KEY_LENGTH.