They usually single out one or two compounds out of dozens which make up the flavor profile, pair it with citric acid and sugar in whatever ratio, and call it good. If they actually synthesized a complex, realistic fruit taste, your laffy taffy would cost about as much as a fine bottle of perfume, which is where they DO pull many compounds together to create an immersive profile.