Russia/Ukraine certainly didn't help energy prices (neither did the CIA blowing up the Nord Stream for that matter), but I had a colleague sounding the alarm on energy prices well before Russia invaded. It was already baked in the cake as a result of European green energy production falling way short of projections, which meant Europe had to draw way more natural gas from the global market than anticipated. This also led to an enormous spike in fertilizer prices, btw.