AFAIK, this is the requirements for the control node; any UNIX-like machine with Python installed
Control node requirements
For your control node (the machine that runs Ansible), you can use nearly any UNIX-like machine with Python installed. This includes Red Hat, Debian, Ubuntu, macOS, BSDs, and Windows under a Windows Subsystem for Linux (WSL) distribution.
Installing Ansible — Ansible Community Documentation
However, there are requirements regarding the version of Python.
The latest Ansible 2.17 requires Python 3.10 - 3.12 for the control node.
Refer to the support matrix: Releases and maintenance — Ansible Community Documentation
In practice, Ansible is tested on several representative OSes before being released. It seems that version 2.17.1 has been tested on RHEL 9.3: ansible/.azure-pipelines/azure-pipelines.yml at v2.17.1 · ansible/ansible · GitHub