In the group `(?:18?)`, the question mark after the 8 results in that character being optional. So this regex would probably match something like 1.2.3.4, which is not an MIT IP. It's a bit hard for me to follow the full regex, but I think this question mark could just be removed.