I hope you also heard that Germany exports electricity to France. The natural gas is mostly needed for heating and industrial processes and that cannot be simply replaced by nuclear electricity.
"Due to the technical problems affecting French reactors, Germany for the first time sold more power to France than it received from its neighbour, doubling its year-earlier export volume there.
France produced 15.1% less power in 2022 and the volume fell short of national usage by 1%."
https://www.reuters.com/business/energy/even-crisis-germany-...