Hi,
Unfortunately, renaming resources in Azure is not allowed. The name is part of the resource ID of the resource which is unique across all resources in all tenants. Only option is to re-create the database. If you have data you will need to restore from backup the data.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.