You can ask for recovery within a certain period of time. The specific time limit is: within 2 months from the date of loss of rights (the date when the formal notification application is deemed to be withdrawn), submit the Request for Rights Restoration, explain the reasons, and pay the request fee for rights restoration. At the same time, the formalities that should be handled before the termination of the invention patent should be completed.
For example, if you lose your right to apply for a patent at the stage of "going public after passing the preliminary examination and entering the real trial stage", you should also pay the corresponding real trial fee and go through the relevant procedures when you request to restore your rights.