The version of selenium in the constraints file is almost 8 years old. I suspect that the proper solution here is to update to Selenium 4. This document indicates it should be straightforward to do so: https://www.selenium.dev/documentation/webdriver/troubleshooting/upgrade_to_selenium_4/
It's never straightforward when global requirements are involved, because the patch has to pass tests with both old version and new version. We will be experimenting with it and try to find a solution that works.