It depends
Most scholars and fatwa councils say: haram, because the gelatine comes from pigs. Some Hanafi scholars hold that processing changes it so much that it becomes allowed. You’re on the safe side with halal or vegan fruit gums.
Source: Quran 2:173 with Tafsir Ibn Kathir