Baby’s sleep

So my son sleeps random times each night it seems... some nights he’ll do as long as 6 and a half hours then other nights he’ll do 4 and a half 5. Sometimes he’ll go back down after his feed for 1 hour other times for 4. When will this regulate and he’ll be sleeping the same each night? I just want to get into a routine even if that routine means he only sleeps 5 hours I just want to have that schedule and know what I’m in for lol