See pylint-dev/pylint#5704 and pypa/setuptools#2896 (comment)
Apparently, I have completely forgotten that on Python < 3.9, we do patch distutils in one more way: We replace /usr/lib with /usr/lib64 on 64bit architectures.
See our patches:
I am opening this issue to track this problem. I don't expect you to fix it, I plan to have a look, but not today.