Actually, Germans do elect their governments who determine energy policies, and they have known for a long time they were too reliant on Russia.
Here's an article from 2014 which makes for quite interesting reading through 2022 eyes
https://www.reuters.com/article/pola...0M71JA20140310