No, this is the direct responsibility of the UK and US, not Germany.
The UK and US pressured the Ukraine in giving up its nuclear weapons and signed the "Budapest Memorandum on Security Assurances".
The agreement literally has this section:
"Seek immediate Security Council action to provide assistance to Belarus, Kazakhstan and Ukraine if they should become a victim of an act of aggression."
Budapest Memorandum Wikipedia
So the US removed the nuclear weapons in the Ukraine, promised protection, did nothing, and now want to sell expensive gas to Europe and sanction EU members for a situation they created in the first place.
It also makes the case for NS2 just stronger.
The risk to run gas through a country in conflict is too high and Germany has no agreements with the Ukraine in the first place.
It's also a security risk for the EU to have gas running through the Ukraine in such a situation, not to mention that Germany actually receives far less gas from Russia than dozens of other EU countries.
46% of German gas supplies are from Russia, meanwhile Estonia, Finnland, Latvia, Lithuania, and Slovakia get 100% of their gas from Russia.
Also higher than Germany are Hungary 83%, Greece 66% Czechia 63%, Poland 57% etc. and most them even have direct pipelines with Russia already.
Natural Gas deliveries from Russia to the EU
It's laughable for a country like Poland to ask to stop building NS2 when they have a direct gas pipeline with Russia through Belarus and use even more Russian gas than Germany.