In Hoodwinked the wolf utters this phrase after giving coffee to his hyperactive squirrel partner so that he can run quickly and tell the police that the rabbit is the villain.
How to Train Your Dragon: Stoick gets one of these after he disowns Hiccup for fraternizing with a dragon, and when he realizes that Hiccup was telling the truth about the Green Death and he's just doomed everyone with him.
King Triton says this almost world for word in The Little Mermaid, when he believes his argument with Ariel and destroying her human artifacts led to her running away.
Sebastian too after he "betrayed" Ariel after accidentally blurting out her love for a human to the king, which lead to the aforementioned incident.
Interestingly, the second half of the song subverts this. Jack starts off miserable, then turns bitter ("Why does nothing ever turn out like it should?"), then suddenly triumphant ("Well, what the heck?!/I went and did my best/And by God, I really tasted something swell!") before rushing off to fix his mistakes at the end.
Cellach, in The Secret of Kells. As the sacking of Kells begins, it begins to get through to the Abbot that, despite all his preparation, things aren't going to work out. And what follows is a massive slaughter that basically makes the rest of his life one really prolonged version of this trope.
In South Park: Bigger, Longer, and Uncut, Conan O'Brien turns in Terrence and Phillip to Mothers Against Canada. When Terrence and Phillip remind Conan that he laughed at their movie and that he's "A very bad man" for betraying them, Conan shouts "What have I done?" and tosses himself out a window.
Sintel: The main character has spent years searching for her missing friend, a baby dragon, and killing the adult dragon that kidnapped it. Sadly, more years had passed than she realized, and she ends up killing her now adult dragon friend by mistake.
In Toy Story, Slinky says this when he and the other toys see Woody and Buzz riding toward the moving truck and realize Woody was telling the truth.
Queen Elinor has a minor one when in an argument with her daughter Merida, she tossed Merida's treasured bow (a gift from her father) into the fireplace, causing Merida to run away sobbing. After Merida leaves, the bowstring makes a loud snap in the fireplace, causing Elinor to realize what she has destroyed - she even tearfully whispers "what have I done?!" She manages to fish it out, but it's too late. It's ruined, and so is her relationship with her daughter.
Later in the movie, Elinor gets this again when she reverts into the mind of a wild bear, and accidentally hurt her daughter and also her husband.
Merida has this herself from the point where she accidentally transforms Elinor into a bear until the end of the film. But it is only evident in the last few minutes, where it appears that Elinor has reverted to the wild bear state, and will never come back.
When the characters of Sugar Rush realize who Vanellope really is, everyone panics, especially the other racers. Of course, they never realized the truth since their code had been manipulated by King Candy/Turbo.
Ralph gets his own, threefold: once when he smashes Vanellope's car on King Candy/Turbo's request, again when he realizes his game-jumping will cause his game to become unplugged since now Felix has gone after him and hasn't returned, and finally when he realizes that it is his fault that the Cy-Bugs from Hero's Duty have invaded Sugar Rush.
In ParaNorman Judge Hopkins and the other zombies have this after they first died. As zombies they realize they were just foolish and scared of an innocent little girl who could talk to the dead, so they spend the movie trying to make up for it. Even at the end of the movie, thier spirits still look regretful for what they did.
TMNT has one of these with Raphael in his battle against Leonardo, which is luckily averted just in time. Raph was dangerously close to killing Leo after a fiery battle, under the impression that Leo left him to be a show-off; the realization causes him to run away in fear.
In Monsters, Inc., although he doesn't say the actual words Sulley's reaction to accidentally terrifying Boo during his scaring demonstration, and by extension the other human children he has similarly terrified as the monster world's 'top scarer', is basically this.
In Mickey's Twice Upon a Christmas, Mickey has this reaction when he realizes that him punishing Pluto for messing up his decorations led to him running away.
Mickey: Oh Pluto, if only I hadn't yelled at you. I swear I'll never raise my voice again.
In Madagascar, Alex has this reaction when his wild side gets the better of him and almost kills his friends, leading him to isolate himself in the jungle to prevent himself from hurting them. Marty then has one in regards to leaving Alex all alone.
In Frozen, Elsa says this almost word-for-word when she is locked in a dungeon and looks out the window to see the endless winter she has caused.