I'm getting this alert even for code that uses only the new ScreenCaptureKit framework, specifically the SCScreenshotManager class introduced in WWDC23. Hopefully this is a bug and Apple meant to show this only for apps that still use deprecated functions like CGWindowListCreateImage.
Don’t let facts get in the way of Apple bashing. Apple already does so many legitimately anticompetitive things (see: iOS EU blah blah), so resorting to this low-quality complaining is very lazy.