You're entitled to unemployment benefits because you've been contributing every month to them by a salary deduction. Albeit, to get them you need residence in Switzerland. Your current
student with work permit ends the day your employment contract with the university ends. So, you need to get a new residence permit starting on 01.01.2021 while getting income from unemployment benefits.....this is the challenge.
First, did you ever signed a document stating you'll leave Switzerland upon completion of studies? In theory the end of the contract with the university is the completion of studies. If this document is remembered by cantonal authorities, big trouble.
At the end of my PhD I also had a lot of incertitude. At the time I consulted the permanence des avocats de Neuchâtel. The advise was to land a job contract as soon as possible (plan A). Plan B was to get a 6 month L permit on the grounds of looking for a job after completing a PhD in CH with income supported partly on savings and partly on unemployment benefits....and the lawyer would help with this because there's a great change a request like this can fail.
My uneducated guess is that if you try to get unemployment benefits after the university contract ends, the chômage office will just say no based on an expired residence permit. You situations is complicate, I'll get a groan here but talk to a lawyer in Lausanne and get some advise. The permanence des avocats is not that expensive because it's like an NGO focused on giving advice on if a lawyer can help or not, or which lawyer can help you. Due to covid video meetings are available
https://www.consultationjuridiqueduv...0aAv-qEALw_wcB