The sharp rise in inflation predates any kind of energy crisis. Inflation kicked off in 2021.
https://tradingeconomics.com/united-states/core-inflation-ra...
Energy didn't become a major issue until Ukraine was invaded.
Inflation was triggered by all the money printed during COVID getting into the economy once it opened up again.