To perform a soft reset, restart your Android phone (press the volume ... the phone asks for your passcode and Google account credentials when it restarts. This is why a factory reset is required ...
You can also use Android recovery ... reset a Samsung Galaxy S24 using your Google or Samsung account. Factory reset using Google’s Find My Device You probably signed into your Google account.