So, the real issue with feeding to sleep, is if you have a baby that can't resettle themselves at all in the night without another feed. If they get bigger, and are weaned, and still need milk half a dozen times a night to get back to sleep, it bad for their teeth and well - a bit of a nightmare as a parent. Not to mention that they probably won't eat enough solids in the day, because they're having milk all night.
There is also the steer from dentists that bottles and milk (not to mention) dummies at night, should be gone between the ages of 1 and 2. This is because you want the fluorine from brushing sat in their teeth, protecting them at night, not bring washed off with milk.
This is not what you're describing. Your baby clearly can self settle in the night without milk, or they wouldn't be sleeping as well as they can. In the day time, anything goes!
Social media is... such a guilt creator!
I'm not a 100pc responsible parent (maybe lazy, maybe just working full time in a stressful job and need sleep and my homelife as easy as possible). If my daughter needs the comfort of a bottle still once or twice in a month, I'll let her have some milk in one. (Though after other options.) She's usually had a nightmare or is sick. I still breastfeed as part of bedtime as it helps her relax, but she doesn't tend to feed to sleep anymore.
These things aren't "bad habits" theyre informed choices about what keeps us happiest and most sane! If the dentist told me her teeth were showing signs of damage, we'd stop.