This unity project is a sample use case of multipass rendering (commonly used in pre-rendering workflow) on Universal Render Pipeline. I used unity distributed packages only, so you don't have to install third-party packages.
OpenGL formatted.
Known issue : it works after light baking.
Isolate "Character" layer.
Divide background and objects.
I used Render Object renderer feature to replace specific objects' (layers') material.
See : https://learn.unity.com/tutorial/custom-render-passes-with-urp
Add previous Forward Renderer Datas to Renderer List
Set Forward Renderer Data you want to Rendering > Renderer