- Related words not replacing text

When I select/highlight a word, right click, and select a synonym from the “related words” menu, it inserts the related word into the middle of the highlighted word (e.g. pity becomes pisympathyty). This only happens when the word is selected. When I use the “related word” feature by just right clicking a word without selecting it, the synonym replaces the word with no issues.

I tried this in multiple projects and it happened every time.