They don’t even need to ban VPNs. They can issue a court order with a gag clause and retrieve everyone’s IPs, along with any other logs or metadata retained. Commercial providers aren’t allowed to disclose anything about the investigation. And if your VPN provides true E2E encryption and no logs of any kind, they will be "invited" to provide a backdoor channel for government enforcement.