At what age did you stop room sharing with baby?

Br

My son is almost 5 months old and I feel like I can’t get anything done for fear of waking him in my room. I have a sound machine but it’s like he can sense when I’m doing something.