file_utils.rmtree, which was created with pull request #523, is copied from an old version of shutil. The new version, post python 3.7, should be used.
Current version: https://github.com/python/cpython/blob/v3.6.15/Lib/shutil.py#L451
New version: https://github.com/python/cpython/blob/v3.13.2/Lib/shutil.py#L714