Grammarly plugin for Samsung Keyboard corrupts the EditText content

I’m developing a RichEditText component based on EditText.
However, the indexes of the existing spans are all adjusted by Grammarly, which is installed as the default on Samsung’s Android keyboard.
Services like Slack seem to have disabled Grammarly on Samsung’s keyboard on Android.
Do you know how to do this?