してしまって

having done something, often with a sense of regret or that it happened unintentionally

→ 為る
phrase Rare #20,281
having done something, often with a sense of regret or that it happened unintentionally しまう adds a sense of completion and can convey regret or an unintended result. The て-form connects the action to an apology or another reaction.
JA: あんな無礼なことをしてしまってごめんなさい。
EN: I'm sorry I did something so rude.

あなたを誤解してしまってごめんなさい。

I'm sorry I misunderstood you.

あなたがアメリカから帰るまでに私は大学を卒業してしまっているでしょう。

By the time you return from America, I will have graduated from college.

私の息子がそんなことをしてしまって、面目ありません。

I’m so sorry that my son did such a thing.

ばかなことをしてしまって恥ずかしい。

I'm embarrassed that I did something so foolish.

私は彼女のような女の子に恋してしまって後悔している。

I regret falling in love with a girl like her.

本当にご迷惑をおかけしてしまって→はい…

I’m so sorry for causing you trouble. → Yes…

— 映画 聲の形 (2016)

遠くへジョイすべてを台無しにしてしまってごめんなさい

Joy, I’m sorry for going away and ruining everything.

— エブリシング・エブリウェア・オール・アット・ワンス (2022)

バスは私たちがそこに着くまでに出発してしまっていることだろう。

The bus will probably have left by the time we get there.