@Khan_MK ,
Based on the screenshot it looks like you only just assigned the P2 license 7 minutes prior to taking the screenshot. In order for the license to take effect, you may need to sign out and sign back in again and restart the browser. Note also that the feature requires a Premium license for each unique user that is a member of one or more dynamic groups.
On a different note, the errors in your screenshot are related to resource deletion and don't seem to be related to dynamic group assignment.
If you have resource with dependencies and are not able to delete them, you can execute the following command to remove the RG:
Remove-AzResourceGroup -Name [NAME OF RESOURCEGROUP] –Force
Let me know if this helps and if you have further questions.
If the information helped you, please Accept the answer. This will help us as well as others in the community who may be researching similar issues. Otherwise let us know if you have further questions.