This is a logic fallacy. Let us remove DIDs, lets remove Smart contracts lets remove L2. They can all be used for KYC. There is nothing inheritly wrong with CS in itself and its ill suited for regulation. Goverment could ask you to implement a smart contract for KYC or to enforce a DID to follow transaciton or else block them etc.