Someone just used gas chromatography to develop a seemingly passable knock off of the unpatented Coca Cola formula and posted it online.
https://youtu.be/TDkH3EbWTYc
Their real genius was always marketing, associating sugar water with freedom, free time, summer AND christmas, ... Not to look down on them, good marketing is both very hard and very powerfull.
In the niche perfumes hobby, you have small brands doing that or people paying for gcms analysis on perfumes, i guess that companies have already done that on coke for decades