I deeply regret not being more thoughtful
I want to take a moment to express my sincere apologies for not being more thoughtful in [specific situation]. Looking back, I deeply regret my actions and the impact they had on you. I understand that my behavior was hurtful, and I am truly sorry for any pain or discomfort I may have caused.