Sleeping time not going well!

Tanya
Hi there,
My baby boy just turned 6 months last week. We have been co-sleeping cause I'm breastfeeding and we have the crib in our room, but he hates it. He can be there for playing time no problem but when it comes to bedtime as soon as I try to put him in there he will cry loud. No matter what I do,!it doesn't work ! The pediatrician says he uses the breastfeeding for comfort and that's totally trueb but how do I break that cycle? I can't be the only one in that situation right? Any advice from other Mamas?
Thank you in advanced 🙏🙂✌️