Super Text Mesh is just meant to be a text renderer, so the type of code that would make this work for Unity's standard mesh will also work for STM.
If the caret is currently at index 3, then...
superTextMesh.text = superTextMesh.text.Insert("***", caretPosition);
should insert a string at the caret's position.
-Kai