« that problem of (the whole of) Germany becoming dependent on Russian oil and gas » — For whom was it a “problem”, and why?
Remember: it was Russia which tried to blackmail Germany by shutting down the pipelines, and that was before the Ukrainians settled the matter once and for all by blowing up Nordstream (Russia had been shutting down the gas flow indefinitely by end of August 2022 after three months of back-and-forth, and the dry pipeline was finally blown up end of September 2022).