So you tried the ketogenic diet, the über-popular low-carb, high-fat eating style. By focusing on high-fat foods (all the avocados!), this type of diet puts your body into a state of ketosis, using fat for energy instead of carbs. For many people, this switch results in weight loss, but most don't (or shouldn't) stick with the keto diet long-term unless they're on it for a medical reason.
https://ipsnews.net/business/2021/12/03/best-health-keto-uk-reviews-burn-fat-for-energy-not-carbs/