We updated our version of importlib_metadata, so we might as well take advantage of it to have full compatibility with the features introduced in Python 3.10.