And in that case, the square brackets are not only recommended; they are required.
Author here; you guys are right! - I've corrected it. Thank you
You are correct, reading the RFC just a little further than my ctrl+f found:
> A host identified by an Internet Protocol literal address, version 6 [RFC3513] or later, is distinguished by enclosing the IP literal within square brackets ("[" and "]").