Cuba, Venezuela, Iran have many problems, nationalizing energy production is only one of them, mostly it is the corrupt government.
On the other hand France fully nationalized EDF and results are good.
https://www.edf.fr/en/2025-annual-results
https://datacentremagazine.com/news/how-france-is-set-to-bec...