See here:
Restore a Database to a New Location (SQL Server) - SQL Server | Microsoft Docs[
^] - it's under the "T-SQL" section.
But I would strongly suggest that it's probably not the right approach: Backups are meant to be just that, and restoring it to the same server with a new name is just duplicating data and potentially introducing a lot of confusion. If you are intending to clone a DB so you can use it on a development machine, that is even more risky, as it exposes you to GDPR (and local Data Protection legislation) restrictions breaches of which causes fines which can be truly astronomical.
I'd think really carefully before I went ahead if I was you.