@nicr9 +1 to Nic’s line of thinking.
Also to Nic’s attention span, this is an uninteresting (to me), very fiddly, very fragile way of accomplishing things.
It’s probably one of your best bets though.
@glyph instead of Selenium, you may want to check out Playwright. https://pypi.org/project/playwright/
It allows browser automation in a very pythonic way - also headless. It installs its own Chrome/Firefox/Safari and avoids any configuration you done to your browser installs.

Custom Selenium Chromedriver | Zero-Config | Passes ALL bot mitigation systems (like Distil / Imperva/ Datadadome / CloudFlare IUAM) - ultrafunkamsterdam/undetected-chromedriver