Excluding square brackets from the match stopped the pattern from eating the
prose after a URL, but brackets are also the IPv6 host delimiter. For
`https://[2001:db8::1]/k?X-Amz-Signature=...` the pattern found nothing after
the scheme and matched at all, so the URL survived whole — signed query
included — in UploadFailureReason, the daemon log, and a remote job's failure
record on the management server.
Take a bracketed host in a leading group, then continue with the delimiter-free
class as before. Two cases added, one with a port.
Reported by cubic (P1) and CodeRabbit (CWE-200) on #7514.