Anyone have experience with leaving a high paying role to study then find a similar role again?

I've been working in tech (big tech non FAANG) for almost 3 years now and I've got quite a high salary for my age.

However I would like to go do a full time masters at home (NL), mainly because I don't necessarily care about working that much and I've saved up enough money now that my financial "struggle" is gone.

I'm wondering if anyone has any experience in getting back into a job after a masters. Was it easy enough to land that job? I'm worried I'll halve my salary after doing a masters because I fear the job market is too competitive and I might not get a job (especially one with relocation benefits again).