Please be aware that even an actual physical kiss doesn't invalidate a fast.
A'isha (RA) reported that the Messenger of
Allah (ﷺ) used to kiss her during the month of fasting. ( Sahih
Muslim Book 13, Hadith 89)
In another Hadith:
Narrated Umar ibn al-Khattab:
I got excited, so I kissed while I was fasting, I then said: Messenger
of Allah, I have done a big deed; I kissed while I was fasting. He
said: What do you think if you rinse your mouth with water while you
are fasting. The narrator Isa ibn Hammad said in his version: I said
to him: There is no harm in it. Then both of them agreed on the
version: He said: Then what? (Sunan Abi Dawud Book 14, Hadith 73)
What scholars say is one should be aware of one's will power. If a man is not able to control himself after the kiss and takes things forward it may lead to actions invalidating his/her fast. Hence, incase of such a scenario it is advisable to practice restrain.
W.r.t your query, it is highly unlikely that a text message would cause you to perform actions that may invalidate your fast. The text message itself or if your wife is physically present, then the actual kiss itself will not break your fast.
Islam doesn't allow premarital relationships. Hence the concept of girlfriend/boyfriend and as per some scholars even fiancee/fiance is foreign to Islam.