You need to restore your status as a student when you extend your study permit. On the application form, select both:
If your spouse, common-law partner or dependent children came with you to Canada, they may also need to restore their status.
Explain how you lost your status and why you stayed in Canada longer than allowed. There’s no guarantee that IRCC will accept your application. You can stay in Canada while IRCC processes your applications. You can’t study until IRCC has restored your student status.
However, if you wish to stay in Canada after your status has expired you may apply for restoration of status within the 90 days following your loss of status. If not, you have to leave Canada.