Windows 11 in S mode is only available in the Windows 11 Home edition. If you want to install an app that isn't available in the Microsoft Store, you'll need to switch out of S mode.
Windows 11 in S mode is designed for security and performance, exclusively running apps from the Microsoft Store.