Maze Runner: The Death Cure

Thomas, a teenage boy, is one of the subjects in an experiment conducted by a government agency known as WICKED. When a manmade disease, known as the Flare, is introduced to the human population, WICKED starts running experiments to find a cure. The Flare causes humans to go insane and to become cannibals.
Thomas and several of his friends have been an ongoing part of these experiments. The final film follows the last experiment that determines which of the subjects are immune to the Flare and which of the subjects are already ill with the disease. It turns out that Thomas is one of the immune, one of the Munies. When WICKED offers to remove a swipe implant from the subjects' brains to return all of their memories to them, Thomas and a few of his friends opt out of the procedure and plan an escape from WICKED.