You do realize electric and drive by wire is completely orthogonal to the point here right? There are plenty of electric conversion kits for older vehicles that are "dumb", no internet connection and only enough intelligence to manage the battery and motor.
Like it's impossible to programmatically disable ICE cars? You've got a false sense of security. You'll have to buy used cars forever to be safe from such a law.