As this is a habit we need to break it and, most habits the only way to do that is by replacing this something else. Stated differently, sweet has become our finisher for every meal. To fix that, we need to replace that with something less harmful and lot more useful.
Fruit is a simple option and one that most of us have tried. While it is still sweet, it is low in calories and isn't indulgent enough to keep you coming Back for more, compared to a cookie or ice cream. But it needn't be just fruit.
Your finisher can be anything as long as it keeps you away from sugar. Cheese, curd, nuts, milk or even water can be used as finishers. Just do it consistently for few weeks, and you'll see that you'll search the cabinet for this, instead of something sweet.