U.S. Pez candy, which contains red dye no. 3, is on display at a store in Lafayette, Calif., in 2023.

U.S. regulators on Wednesday banned the additive called red dye No. 3 from the nation's food supply, nearly 35 years after it was barred from cosmetics because of potential cancer risk.