This tutorial Demonstrates how to render UI Widgets or UMG with your final render in Sequencer In Unreal Engine 5.
The Movie Render Queue Config Settings have a setting called “UI Renderer” that you need and can use when you wish to render User Interface Elements In your Final Scene…
https://dev.epicgames.com/community/learning/tutorials/walm/unreal-engine-how-to-render-umg-ui-with-sequencer-movie-render-queue