5 months is little! I still feed my 10mo DD in public, though not so much now she's on proper meals now. Never ONCE had a bad look or shitty comment from any member of the public.
My family however have been undermining little sods since DD turned 3 months. My DSis has a DS 4 months older than my DD and she switched to formula at 4 months. My DM (back story - woman who banged on constantly about how she BF all her kids til they were one) was right behind DSis and told her to start weaning the little boy too. DSis started pushing bananas into him. Little boy now 14 months and refusing all food except yoghurt. Still drinks formula from a bottle. Has had a cold nonstop for 4 months.
When DD hit 4 months, both DM and DSis jumped up and told me to start weaning, that BM wasn't enough goodness now. I ignored them and waited til DD was ready, which was at 5.5 months. She's a fab eater and loves all kinds of textures and flavours. But I still BF because it's good for her and she likes it.
My DM told me a few weeks ago that I had to stop BF because it was becoming a bad habit for DD. My two sisters think I'm wrong too. But I look at a little girl who eats well and has only ever had one cold (which she caught from DSis's DS). So I ignore them.
You should be proud that you've done so well and enjoy it for as long as it suits you both. You and your LO's health are the important things, not what a stranger thinks. If you were veggie, would you order a steak just because someone sneers at your salad?
Sorry, that was mainly a rant at my family! Guess loads of you have similar!
But 5 months. Carry on, you're doing fab!