PR review request: Disallow IPv6 URLs with invalid prefix/suffix

I opened a PR for fixing urlparse/urlsplit to not allow invalid prefixes/suffixes around brackets IPv6 URLs (issue #105704).

Would anyone be able to take a look at it?