Fix regex for private network detection