Exactly. As long as so-called "DEXs" have a centralized website domain and server, governments will be able to shut them down easily. The situation is different when a DEX is built using a separate software or P2P technology. It'll be practically impossible to censor DEXs this way. My guess is that Block DX and atomic swaps will serve as the "holy grail" of decentralized trades in the crypto/Blockchain space within the not-so-distant future. Regulations cannot be enforced on truly decentralized exchanges, because they're not subject to a single jurisdiction. They live on various nodes worldwide, leaving the middleman out of the system for good. But who knows? Governments may come up with a different strategy in order to prevent people from gaining access to the decentralized economy. As long as crypto/Blockchain tech is considered to be a threat to the existing monetary system, we'll expect constant opposition by governments worldwide.
Nonetheless, the future for decentralized exchanges is highly uncertain. Centralized exchanges are ahead of the game because people use them more than their decentralized counterparts. Governments wouldn't pay much attention to DEXs if trading activity/volume remains low. As long as centralized exchanges dominate the industry, decentralized exchanges will only become an alternative than a replacement. Regulations could stifle the growth of DEXs but not to a point where they completely disappear from the face of the Earth. Just my opinion

Speaking of p2p technology and cross chain atomic swaps
have you checked this project named QORTAL
https://bitcointalk.org/index.php?topic=5258519.0This can run on a rasberyPI at your home.
No more bulshit KYC/AML and exchane hacks because you own your keys.
Remeber NOT YOUR KEYS NOT YOUR COINS.