>As long as there's a country willing to build and sell ESP32s, I think it would be fairly easy to get hold of them.
You could say the same about firearms.
>Is a government really going to ban all electronics?
All electronics that can be freely programmed by the owner, not impossible.