The code is very simple, i just made a dialog behind the text, and auto adjust its size:
public SpriteRenderer spr;
void Update()
{
var stm = GetComponent<SuperTextMesh>();
Vector2 s = new Vector2(stm.preferredWidth + 2f, stm.preferredHeight + 1f);
spr.size = s;
}