Sorry, not wrong but 'NOT RECOMMENDED'
If the IP is without port then the usual form of
When there's a port, the brackets should be used:
I wanted to copy the IPv6:port and paste it to another client. Unsurprisingly it wants the square bracket form.