Any cars unable to return to the pit lane as a result of the track being blocked will be brought back when the track is cleared and will be arranged in the order they occupied before the sprint session or the race was suspended.
Page 64
Additionally, any cars in the pit lane or pit entry at the time the sprint session or the race was suspended will be arranged in the order they occupied before the sprint session or the race was suspended. Any cars in their garage at the time the sprint session or the race was suspended will be arranged at the back of the line of cars in the fast lane in the order they got there. Any such cars will be permitted to leave the pit lane when the sprint session or the race is resumed but must re-enter the pit lane when the safety car returns and may join the sprint session or the race once the last car has passed the pit exit after the re-start (also see Article 58.12). In all cases the order will be taken at the last point at which it was possible to determine the position of all cars. All such cars will then be permitted to resume the sprint session or the race. The Safety Car will then be driven to the front of the line of cars in the fast lane.