Fix raw string literal and add better ip regex