Samsung does not offer any SDK to access the camera. All third-party applications can access the cameras of Samsung devices using Camera2 SDK. I guess they are exposing up to 4000x3000 to 3rd party apps.
Also can follow this thread for more info.
I already get similar information from Stack Overflow.
but I want to double check, so I wrote the question in this Samsung web page.
because, S22 Ultra is made by Samsung.