How to be okay that I keep putting my wants (work on hobbies more, eventual LTR, etc.) over my career/ work?

I ask because I was sleeping with a chick for a year and a half (we are both working on master's degrees) and eventually I caught feelings. But I felt like I should concentrate on my work and I didn't know where I or she was gonna end up (possible across country) so I didn't elevate the relationship. She eventually didn't want to just fuck and left. Months later she is dating someone else who didn't go for a higher degree but has a job and is more established and shares her hobby.

I'm just beating myself up. I felt like I chose the wrong path and keep putting off a proper relationship because I don't know where I may be so I play scared instead on just trying.

Advice?