I regret acting that way
I want to take a moment to express my sincere regret for the way I acted recently. Looking back, I realize that my behavior was inappropriate and hurtful, and I deeply regret my actions. I am truly sorry for any pain or discomfort I may have caused you.