but the habit of overeating is gone
It's only gone as long as they stay on the drug. Unless they make an effort to change their lifestyle and eating habits while they're on the drug, nothing will change. For people who have immediate health issues due to their weight, then a drug like that makes sense. But for fat people trying to lose weight, I don't think it's sustainable.
I'm fortunate to be of a healthy weight and I've never had to worry about obesity. However, I do consciously make choices to eat less even when my body begs me to eat more. I feel like it would be much harder to develop that "skill" if I was on a drug like ozembic. The point is to learn to say "no" when my body is begging me to say "yes".
I met a family member's kid once who would both narrate himself while playing Minecraft, and have full conversations with whatever youtuber he was watching on a second screen (who was also narrating himself playing Minecraft)
I also met an old lady with dementia once who would have full conversations and arguments with people on TV.
I'm not sure if this phenomenon has a name, but it's something currently afflicting both the silent generation and generation alpha.