F1 Visa but left USA

Hello all,

 

I entered USA in 2017 on F1 visa. I was in USA till April 2021 and left for India and never returned back to USA. 

 

Even after leaving USA, I was continuing my job and working remotely from India till April 2022. My taxes(Federal, State, FICA) were witheld and I would like to know how to get that refunded as I was practically not working in US. I would like to file return for year ending December 2022. 

 

My 5 year calender period for F1 visa got over in December 2021, but I had already left USA and even after that my company witheld FICA. 

 

Please let me know:

 

1. Which tax form to use : 1040 or 1040 NR ?

 

2. Will I he able to get FICA back as I had already left USA and did not enter USA in 2022 at all ? Which form to file for the same?