Fix regex backreference to use \g<number> syntax for when encountering IP addresses