Sending dirty texts to someone you used to sleep with is absolutely cheating. You are giving your sexual intimacy to another person behind your partner's back.
It’s not just the texts, it’s the secrecy and intent. If you’d hide it because your partner would feel betrayed, that says everything.