Why are you using HTML specification here? Why not "Uniform Resource Identifier (URI): Generic Syntax" (RFC 3986)? Unless I'm reading it wrong, it is quite clear that 'sub-delims' can be used in 'userinfo', no? https://datatracker.ietf.org/doc/html/rfc3986#appendix-A