The regex given here for IPv6 addresses works well for most IPv6 address I am looking to extract.
But it falls short with address 2607:f8b0:4001:c03::247 (mail-ie0-x247.google.com), matching only up to and including the last two colons thus 2607:f8b0:4001:c03::
How would we extend the regex (for Python) such that it catches cases like this (without breaking it for other variants? I'm not sure how Google sets up its IPv6 addresses, but I guess it's conceivable that the characters coming after the last two colons could be a mixture of both letters and numbers, so the regex should handle this also.