Some examples of ultraprocessed foods it gives are "margarine", "candies" and "sweetened yogurt". Do you avoid these things too?
With every fiber of my being. I wouldn't touch margarine with 10 foot pole and I don't consume sweets or anything that has sugar as a part of the list of ingredients.
How are you alive?
Sugars are essential for human life. What, you don't even eat fruit?
My body will get all the sugar it needs from the foods I eat. And I do eat fruit, but not sweet fruit. I eat fruit like tomatoes, avocados, cucumbers, peppers, certain members of the squash family like zucchini and small quantities of wild berries when they are in season. I don't eat bananas, apples, oranges, pears or other high sugar fruit. I also eat large amounts of cruciferous vegetables, greens, onions, garlic, etc.. These all have some amount of carbohydrates which the body will break down into the all the sugar it needs. In fact, much more than it needs.
However, if humans get no dietary carbohydrates at all, they can live quite nicely. The main metabolic process in humans is supposed to be ketone based, not glucose. Some processes in the human body need tiny amounts of glucose and it can produce all it needs through gluconeogenesis.
But, of course, what I meant by what I wrote above was that I read the list of ingredients for the small quantity of processed food I eat and if sugar is there, I don't buy it or eat it.