King Solomon wrote “there is nothing new under the Sun”. In the 12th century, Rambam (Moses ben Maimon – a.k.a. Maimonides) wrote about a healthy diet. Follow his 10 rules and while you might not live to 120 (Rambam was only 69 when he died) but you will never put on weight.
https://www.jpost.com/health-and-wellness/nutrition/article-885430