If you apply for renewal, your status of residence will be extended for two months from the expiration date of the period of stay as a special case. Therefore, during this period, the status of residence is continuous, so it will not be considered retirement.
You will need to apply for renewal of your residence card before the expiration date, so please proceed with the procedure with plenty of time.
[Related Links]
What is the special period? | Immigration Services Agency