"Find and Replace" for rich text in automations + scripts

For example, I want to run an “autocorrect” script. Any time “Ron Berlinksi” is typed, a script runs to replace it with “Ron Berlinski” (just an example). Currently, by the time the script is triggered, there is already new content in the rich text, and the script can only update the whole rich text, not a specific part. So it will then overwrite the latest couple of words / sentences written. Not an ideal experience.

Ideally there’s a native Find and Replace for Rich Text Fields, that will not overwrite the whole doc, but really just replace a single part, even as the user is still typing.

Somewhat related to: Search & Replace - #10 by Raffaele_Gorjux

Have you considered using an autocorrect tool (e.g. browser add-on) which fixes the errors as you type them?

The example I gave was simple. The real use case is with the Google Drive Integration I’m working on. For when a Drive Link is pasted, it should replace with a mention of the file/folder if it exists. So it needs to query dome DBs, then replace it.