I had roommates well into my 30’s. (Including in 2 houses I owned.)
My criteria – stable income, stable personality (no drama)… I didn’t care if their room was a disaster -but they had to keep common areas reasonably picked up.
Shared food/cooking or seperate food needs to be negotiated up front. For me, because of schedules etc – we usually did most meals separate… but weekends one or the other of us would cook.
I’m still friends with ALL of my former roommates. 2 of the roommates were housemates for multi-year stretches. My best friend was my roommate in the mid-80’s for 3 years, then she and her (now ex) husband moved in with me when they were building their house. The key is to establish expectations and communication. (The same could be said for marriage, lol.)