Gas is a relatively new thing in the electricity market in Germany and there are way more coal plants in Germany than gas plants. Until the Ukrainian war, the plan was to replace coal with gas and eventually renewables. That plan went into the shredder a few months ago. I don't see that happening anymore. It was not a great plan before and now it's obviously a really bad plan to build any new gas plants. Without cheap Russian gas, these plants will never have a positive return on investment. Likewise producing more grey/blue hydrogen using gas seems madness. People lobbying the use of gas for such things now have to deal with a gas market with unreliable suppliers and wild prices.
As for heating, Germany has a lot of district heating that is dependent on gas. These setups might be upgraded to other sources of heat but that won't happen overnight. Upgrading buildings to use heat pumps is a long term fix to both save energy and reduce dependence on gas. But it can't be done on short notice either. Getting rid of gas for heating will take many years.
So, the short term plan is to import gas from elsewhere via pipes or in LNG form at great cost and use it only for those things that really still require gas. This is expensive and creates a huge economic incentive to do something more economical. So this winter, heating will be prioritized. They'll burn a lot more coal than was planned to reduce the need for gas plants to operate. And when solar/wind fall short, they'll sacrifice some gas reserves via gas peaker plants.
I expect a lot of investment will go towards accelerating the rollout of wind/solar and heat pumps to reduce the need to burn gas and energy storage solutions to reduce the need for using peaker plants. The good news is that there are plenty of solutions in the market that with investment can scale up and reduce cost. Nuclear is not part of any plans (other than to get rid of it) that are currently under discussion. The option to keep a few plants open for a bit longer is the exception to this.