Doctors and nurses who returned to work in the NHS during the pandemic will be able to continue working without damaging their pension status until October