As of Python 3.13 (although improved in 3.14) the Python REPL now supports colour, see here.
Besides the REPL you ask about, 3.14 also brought colour to the output from a few standard library CLIs and PDB's output, see What's new in Python 3.14