IFAB Law 2 states: "If at the end of the half, the referee leaves the field of play to go to the referee review area (RRA) or to instruct the players to return to the field of play, this does not prevent a decision being changed for an incident which occurred before the end of the half."
IFAB Law 7.4 - On duration of match
If a penalty kick has to be taken or retaken, the half is extended until the penalty kick is completed.
Hope this helps. Why on earth you think a match official would need to discuss how to restart a game with the managers is beyond me. Maybe referees know the rules and the fans don’t. There’s always that......