I believe there is a lot more to it than that. The viewpoints toward oil from his administration certainly didn't help; the sanctions against Russia were bound to cause repercussions. You can pump all of the oil that you want, yet it's useless without refineries, which I believe is the bottleneck in the supply chain. Basic supply and demand suggests that prices will go up, as we are trying to make up for what we won't allow Russia to sell. (I believe that current sanctions will bite us in the tail in the long run, yet that's a discussion for another thread.)
Interest rates had been low since the Obama administration, and we had a pretty good economy for over a decade. We were bound to see an adjustment at some point.
Something which I like to point out to EV fans though... in many states the price of electricity is controlled by mandate. That's the only thing keeping electric prices from going through the roof as more people buy electric vehicles.