The Super Mario Bros. Movie

The Super Mario Bros. Movie is a 2023 movie based on the Mario series of video games.

Near the beginning, Mario is trying to complete an obstacle course, and during (at least) one of his attempts, he is eaten by a (robotic) Piranha Plant.

Later, Mario and Donkey Kong are eaten by a Maw-Ray, but they manage to escape with a Barrel Blaster.

During the climax, Mario and Luigi are eaten by a Piranha Plant (a real one this time), but they have the Super Star and are able to break out.