Presidents can't really impact gas prices. People have been blaming the president for spikes in gas prices since GW Bush. They can't cause them to spike and they certainly can't cause them to drop five weeks or so before midterms (I guess they could if they waged war on Canada). Gas prices are very complex mechanisms and vary greatly from region to region and state to state. A lot of gas price fluctuations in the US are tied to refinery issues or non issues and state taxes/regulations.
We actually are producing a LOT of oil right now and even with Covid we produced a LOT of oil - more in 2020 and 2021 than 2018:
https://www.eia.gov/outlooks/steo/report/us_oil.php
U.S. crude oil production in our forecast averages 11.8 million barrels per day (b/d) in 2022 and 12.6 million b/d in 2023, which would set a record for the most U.S. crude oil production during a year. The current record is 12.3 million b/d, set in 2019.
We produce enough domestic oil to meet all our consumption needs but we are unable to refine all of it hence why we export so much. It has very little to do with environmental policy or lack of drilling.
https://www.nasdaq.com/articles/america-produces-enough-oil-to-meet-its-needs-so-why-do-we-import-crude
Had we thought about it 30 or 40 years ago we probably could have built a bunch of new refineries but that didn't happen and it was because of a lack of foresight from both parties....or because having other countries rely on us for oil gave us some kind of leverage.