Firstly, not the EU but Germany! Secondly, the main problem that is being discussed now is the term of the contract. Qatar wants 20 years. And Germany has already launched a “farewell to Russian gas, oil and coal” program as part of a program to reduce emissions into the atmosphere, and according to the approved plan, Germany should reduce carbon dioxide emissions by 88 percent by 2040. This means that gas purchases should also be reduced until 2040, and not only in Russia. And 2040-2022 = 18, but not 20 years, do you get the point? I'm sure the issue will be resolved. The question remains unresolved - where will Russia put its gas, oil, coal, which no one needs?!

I am pretty sure that even if it was 18 years, they would still decline it because why would you put your nations money at a guaranteed purchase such a long time? I would guess that they would find another alternative for sure, and they will just focus on renewable energy more and more.
This is a great deal for the climate and the environment, this will help the world become better and the climate to cool down a bit with less coal, gas, oil to be used because they pollute the world a lot. This isn't just Germany, many nations are looking ways to be self sufficient and if you do not have oil or gas, then renewable is the only way to go.