Electricity and gas prices soared from late 2021, driven by the reopening of economies after Covid and Russia’s invasion of Ukraine.