When to transition baby to own room

My baby is almost 5 months on the 9th. He sleeps in his cribs in his own room for all naps during the day, but still sleeps in bassinet next to my bed overnight.

He wakes up at the same time every night at 12am and 3am and I feel like it’s more out of habit, so I’m wondering if maybe he’s just starting to outgrow the bassinet or maybe it’s not as comfortable, I mean who really knows, it’s all a guessing game…

I guess I’m just trying to see if anyone has transitioned their baby at 5 months and if it’s ok to do so or is it too soon? And also, if anyone noticed that their babies slept better being in their own room

TIA 😊