For ColorOS 11 and above: Go to [Settings] > [Privacy] > [Private Safe] > type in a wrong password > [Forgot password] > choose [Reset through security questions], [Reset through recovery email], or [Reset through OPPO ID].,
If you forgot your password then simply move towards any app or private safe in which you set Privacy Password. After entering the wrong password you'll see Forgot ''option'' simply click on it and choose the desired option to recover. Lock Screen Password Recovery realme UI?07-Aug-2020
Go to [Settings] > [Security] > [Private Safe] and enter a passcode for your private safe then enable [Homescreen Shortcut].
Go to [Settings] > [Fingerprint, Face & Passcode] > [Privacy Passcode] and enter the privacy passcode. Tap [Modify the Security Question] and enter the privacy passcode again. Tap the question to see more options. Set or customize a new security question, and tap [Done].