That guy, the ref, is lucky as well. Many would not know that but after that stuff he gave PSG a rather dangerous direct free kick, which he had no right to award according to the laws of the game. So he made a technical mistake on top of all that buffoonery as well.
Now PSG did not score from it and it was "scorable". And then after the ball hit the wall Alves kicked it back into the area, where Rabiot got it and he hit the post from a scoring position. Had PSG scored there, now that would be a complete disaster and actually real grounds for awarding a replay.
That ref is a real disaster. I can understand people who are calling to go easy on him, saying that everybody can lose one's head etc, but honestly, the guy basically invented his own rules during the game.