DID URLs are allowed by DID spec.
did:key doesn't support DID URLs though. I think we can simply create a new DID method based on did:key (did:fedi?) where resolution of DID URLs will be specified (and other stuff like processing of hosts query parameter).