dùn​wù​qián​fēi

to suddenly realize one's past mistakes