Waking up at night?

Ma

My son is 7 months + 1 week and for the last few nights he’s been waking up at 5am. He’s not hungry and the pacifier doesn’t soothe him back to sleep. Last night, after struggling to get him back to sleep for over an hour, I finally did the unthinkable and pulled him into bed with me and he fell right to sleep. Obviously that’s a big no no for safety reasons, but I also don’t want to make a habit of that because I can’t ever sleep when he’s in bed with us. Is this the start of the 8 month sleep regression, or is it something else? Any tips for helping him go back to sleep in his own bed?