Take Sweden, since that is the country where I live in and which has an ongoing election right now. We are not building any new nuclear. We are building a bit more wind and solar, but both is close to 100% capacity and interest for overcapacity is low. New production is located in areas which has yet to reach 100% capacity. Hydro capacity is already at maximum capacity and need to be decrease in order to follow environmental rulings from EU and prevent extinctions of multiple species.
Thermal power plants however is seeing an increase with new plants being planned to burn fuel for electricity and heat. Private capital has great appetite for thermal power plants since those has great financial ability to extract rent from the government as part of the reserve grid and providing readiness to stabilizing the gird, and when they produce energy they can extract the highest price since periods of low wind and low solar create the absolute highest market price. The energy crisis a few years ago demonstrated that a single month can create market prices that exceed that of a whole year if the weather produce non-optimal conditions during the winter.
So the solution is really that simple. Do not build power plants that burn fuels. The economics will push the next cheapest solution to the top.