With the latest Android 16 QPR3 release, you can finally Cast the screen contents of external displays, not just record them.
Samsung's latest One UI 8.5 beta brings an upgraded screen recording menu that allows more control over what you can record.