Python is deprecating `distutils.cfg` · Issue #76621 · Homebrew/homebrew-core
If you have been directed here from a pip warning, you don't need to take any action at this stage. Nothing is currently expected to break until Python 3.12, and a full solution will be implemented...
GitHub