The easiest and simplest way to avoid this issue is to use the webdriver_manager library.
You can understand the purpose and benefits and how to use this in the reference below.
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from webdriver_manager.chrome import ChromeDriverManager
service = Service(ChromeDriverManager().install())
driver = webdriver.Chrome(service=service)
driver.get("https://www.chess.com/")
driver.close()