We are running the cli in pretty back-level versions of Python (and thus Ansible) ...
Work was started on a Python 3.11 upgrade last year: https://github.com/ibm-mas/cli-base/tree/py311 ... this should be resumed and at this stage we should look at going direct to 3.12.