Questions on store bought salad dressings

Brooke suggests no flour or sugar and mentions that she likes ranch dressing with her salads. Pretty much all salad dressings in the grocery store have some sugar in them. Is that ok if you’re trying to lose weight? Same with things like pasta sauce. Thank you.