What version of Go are you using (go version)?
go 1.21
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
[$ go env](https://go.dev/play/)
What did you do?
https://go.dev/play/p/njAfwJZKrXZ
What did you expect to see?
https://www.rfc-editor.org/rfc/rfc1738.html
user = *[ uchar | ";" | "?" | "&" | "=" ]
password = *[ uchar | ";" | "?" | "&" | "=" ]
What did you see instead?
invalid port ":p" after host