This seems to be the same question as posted on this thread:
2D Light URP Light Mask Duffuse Ramp and Specular
Please always keep to a single forum thread and not double post your question. And don't worry, we will find new forum postings, no matter on which subforum or thread they have been posted.
If the two questions are the same, let's please keep it to one of the two threads.
If they are separate questions, could you please provide more information about whether you are using Universal Render Pipeline or not, and if so, wheter you are perhaps using 2D Renderer for 2D lighting?