Varenicline, which is meant for the treatment of nicotine addiction, can help reduce cravings for sugar.

https://recoverypartnernetwork.com/behavioral/sugar-addiction