Go to the directory where undetected_chromedriver is installed (usually in site-packages). Open the patcher.py file (located in site-packages/undetected_chromedriver/). Replace the LooseVersion import line from distutils.version with a direct import from packaging.version, which is a more modern and widely used alternative:
from distutils.version import LooseVersion
from packaging.version import Version
sorry my bad english, use translator