Captain Rex is one of the Blind Bag characters in Lego Dimensions 2: The Rise of Enoch, from the Star Wars franchise.
CT-7567, nicknamed Rex, was a Clone Trooper Captain(later commander) in the Grand Army of the Republic. Throughout the Clone Wars, Rex was in command of Torrent Company, a unit within the 501st Legion. At some point, Rex was awarded the Jaig Eyes, a battle honour given to him by Mandalorians who trained clone officers during the Clone Wars. Rex worked closely with Jedi General Anakin Skywalker and Jedi Commander Ahsoka Tano, both of whom he assisted on several missions including battles on Christophsis, Orto Plutonia, Umbara, Ryloth, Teth, Geonosis and Lola Sayu.
He was also known to work with Clone Marshal Commander Cody on many occasions since Skywalker also commonly worked with High General Obi-Wan Kenobi. He fought with the Republic until late into the war, when clone trooper Tup's inhibitor chip activated prematurely and Tup executed Order 66, killing a Jedi General. Tup was transported to a medical station along with ARC Trooper Fives, who escorted him. Tup died, and Fives found the inhibitor chip in his brain, removing it. Fives was killed by Commander Fox while trying to tell Rex and Anakin Skywalker the truth about Chancellor Palpatine.
Rex, who had been close friends with Fives, became disillusioned with the Republic, removing his inhibitor chip along with Clone Commando Gregor and Commander Wolffe, the three clones subsequently retiring from the Republic and living on the planet Seelos in an AT-TE. He was replaced in the Army by Seargeant Appo. He was later found by Kanan Jarrus' crew with help from Ahsoka, and eventually joined the Rebellion, notably befriending both Kanan and Garazeb Orrelios.