To complete or finish something (often with regret)
This indicates that something is finished, often with an implication of regret or completeness.
Examples
料理が焦げてしまった。
The dish got burned.
注文を間違えてしまいました。
I accidentally made a mistake with the order.
飲み物をもう全部出してしまった。
I have already served all the drinks.
Quick check
注文を間違え___しまいました。