How to create stencil effect in URP?

I was following a tutorial of Sebastian Lague(This Video) on creating FOV with stencil effect. I am using URP so the custom shader I created appears pink. How can I create stencil effect in URP(I am begineer to this shader stuff)?

Hi! try to upgrade standard materials to URP ones !

link docs: Upgrading your Shaders | Universal RP | 7.1.8.