Separate the method from the decision
Say clearly that you regret delivering the breakup by text and why that failed to show care. Do not imply reconciliation simply to soften the apology.
Offer clarity, not another emotional surprise
Answer necessary questions about timing, belongings, housing, money, or shared commitments. If appropriate and safe, offer one bounded call, while making refusal acceptable.
Recognize when text was the safer option
Nobody owes an in-person breakup when there is fear, coercion, abuse, or risk. In that situation, do not apologize for protecting safety, and use trusted support or local services.