Hi, I'm Bernard. I'm happy to help!
Kindly check first if the device is already switched out of S mode by checking the Windows Version and edition:
Go to Settings > System > About
Under Windows specifications, please let me know the Windows version and edition you have.
If it's still in S mode, kindly follow the steps below:
Method 1. Change the region to the US or the UK
Go to Settings > Time & Language > Change the "Country or region" to US or UK, then go to the Microsoft Store and switch out of S mode.
Method 2. Create a new admin user account, then switch out of S mode using the new account:
Go to Settings > Accounts > Other users > Add account
Follow the prompts to create an account.
Then go to Settings > Accounts > Other users > Select the account you created > Click "Change account type" then select "Administrator"
Restart the PC and log in to the new account, then try to switch out of S mode.
For reference: https://support.microsoft.com/en-us/windows/security/identity-signin/manage-user-accounts-in-windows