Germany under Merkel did not expect or advise an aggressive NATO expansion policy. Germany is also far from the only European country that bought Russian gas via Nordstream.
Ukraine should have given a non-NATO guarantee in January 2022. As we can see now, NATO is not required for defending Ukraine because it gets massive military help regardless.
Instead, Zelensky had his 15 minutes of fame in the Munich "peace" conference, talking about getting nuclear weapons.
I don't think Merkel foresaw that kind of stupid escalation. But the U.S. is secure as always.