cli: drop legacy `SafeConfigParser`
The old `SafeConfigParser` class has been deprecated since Python 3.2, and was fully dropped in Python 3.11. See issue [#45173](https://bugs.python.org/issue45173) on Python's bugtracker. /cc @xavier_thompson who may ping anyone else if needed