AFAIK use of Apple's more recent ScreenCaptureKit should not have been triggering this alert—as opposed to the use of the deprecated Core Graphics APIs for screen capture—but it does. (I just tested this in an Xcode playground that uses SCScreenshotManager.captureImage)
If there's another "system private window picker" I haven't heard of it.