Open
Description
Bug report
Bug description:

In #28150, the carets' positions are compatible with wide unicode characters. I believe the colors should also be compatible.
CPython versions tested on:
3.13, CPython main branch
Operating systems tested on:
Windows, macOS