Rasa at the moment only supports Python versions 3.7 through 3.10.
Version 3.12 is not supported so you should downgrade to 3.10, unless your Rasa version is not 3.4.X, in which case you need 3.9 or earlier.
See this for environment info: https://rasa.com/docs/rasa/installation/environment-set-up/