MacBook Pro Mouse and Keyboard freeze after opening the Lid So recently my MacBook Pro 2018 Touchbar (4 USB-C and Intel I5 Quadcore) has been having a really weird problem after waking up from Sleep. Every time I open the Lid and log in, the screen wakes up like normal and sometimes I can see new notifications from Firefox.
However, my Mouse and Keyboard stay completely unresponsive.
I see the mouse cursor, but it just won't move. CTRL + Arrow key also won't change screens. It's exactly as in this post here from 7 years ago and sadly no fix.

It occurs from only for a few seconds to up to 30 seconds sometimes.
It also happens always for at least a few seconds, no matter where I
am or what state I closed the lid in.

What could remove or resolve these post sleep freezes?
UPDATE: The NVRAM reset ended up being only a temporary fix. The answer here was the real solution. The problem seems to either be with VM software or closing the lid with a VPN running (the latter was the problem for me). Disconnecting from the VPN before closing the lid fixed the problem.
Original post:
This is a bit late, but resetting the NVRAM seemed to work for me:

Restart your laptop
When the Apple logo comes on screen, press and hold option + command + P + R
The logo should go away and come back after a few seconds, and hopefully that should be it!