Definition
to stop someone from experiencing a certain feeling by startling them, scaring them, or causing a sudden realization.
Her scream shook him out of his reverie.
The loud noise shook him out of his sadness, making him realize he needed to move on.
The unexpected surprise shook her out of her past mistakes, allowing her to finally move forward.