The grammar structure ~てしまう has two main usages:
Completion of an Action: Indicates that an action has been completed entirely.
Regret or Unintentional Action: Expresses regret, accident, or something done unintentionally, often with negative implications.
When used in conversation, ~てしまう is often contracted to ~ちゃう in informal speech, and ~でしまう is contracted to ~じゃう.