Diversifying natural gas imports and having more long-term contracts with other producers would have been slightly more expensive before the Ukraine war, but it would have drastically reduced the price jumps thereafter.
That is a very long time into the future, with a very high uncertainty.
So to add 100% to the currently installed electricity generation capacity in Germany, the German government would have to spend less than 5% of its current annual budget each year for 30 years. Let's say 6%, if you add some money to switch out network components to deal with greater variability in network loads.
That seems very achievable, especially because of course most of this money will come from private investments, not the state. If required, industrialized economies could of course spend the required sums to build out their installed capacities by a factor of 2,3 or 5. That would reduce the need for base load capable producers drastically, as well as the need for grid-scale storage.
Wind and PV heavily rely on backup power plants. So building a lot of wind and PV increases the reliance on gas plants instead of reducing it.
Even the government’s own energy agency "DENA" makes this claim.
See: https://www.dena.de/fileadmin/dena/Dokumente/Pdf/9262_dena-L... (p. 28f).