How can I rename Device ID from disk1s5 to disk1s1
Device IDs are what the system uses to identify the drive.  They often change depending on when and even where they are detected (Internal vs. USB vs Thunderbolt).
For instance, an old hard drive bootable drive might be identified as disk1s2.  Take it out and put it in a USB enclosure, attach it to another Mac and it  suddenly becomes disk3.
This is not something you need to try and manage and trying to make of “match what came out of the box” does nothing except create a massive amount work on your part.
Now the fact that the data partition went from slice 2 (disk1s2) to slice 5 (disk1s5) tells me that you may not have removed/reformatted the drive properly.  However, this is now moving into a new question so issue the command diskutil apfs list and post it to a new question as to the structure of your partition layout.