Cursor bug when using accents - Languages that use accents are difficult to type

When using accents, the cursor sometimes works well, but other times works bad (watch the video).
This bug appears randomly, but many times.
I use these accents when I type: àèéíòù.
I think that this thing is managed very bad. It’s not smooth at all. If you see, when I select the accent, the character accented is getting selected for a short period of time (in fact it appears, and disappears, the selection menu).

Device Specifications

  • OS: macOS Catalina v10.15
  • Browser: Safari v15.3

It happens also on macOS Monterey v12.3.