International student here, if I already graduated (received an Exmatrikulation) and my student residence permit still has a few months validity, can I travel to my homecountry and come back to Germany while the permit is still valid?

It is a question from my friend, she’s worried that it won’t be allowed due to her status not being a student anymore.

The reason of her worry is that she cannot continue as a working student in her current job anymore once receiving Exmatrikulation, which I understand. But if one’s student residency permit is suddenly invalid the next day they’re not a student anymore, it doesn’t make sense.

Has anyone had the same situation? Advice on what she should do is appreciated. If she cannot travel with a student residency permit while not a student anymore, I was thinking she should first apply for a job-seeking visa, and then only once it’s in process can she travel back home for a few weeks.