With the recent release of Python 3.12, cashocs should support this, too.
However, from the FEniCS side, Python 3.12 is only supported with PETSc 3.20, which currently has some bugs, see #320.
Once these are sorted, cashocs should be able to support Python 3.12.