Cursor misalignment on macOS

I’m using mbed studio 1.4.1 on macOS 10.15.7. It’s noticed that the cursor will be located in wrong position, especially for long lines.

Here are two screenshots. At the beginning of a row, the cursor is located in the correct position (maybe slight shifting), while it overlaps characters with the increasement of colon.
Screen Shot 2021-08-14 at 13.41.53
Screen Shot 2021-08-14 at 13.41.34

As far as I test, this condition doesn’t appear on Windows 10.