MacOS partition isn't working properly
Today I was deleting a partition from my MacBook that I thought was completely unrelated to my MacOS system, when a diskutil error popped up. Almost immediately my Mac rebooted and the System i was working on seemed completely gone, so much so that the machine rebooted in internet recovery mode.
There I installed a new macOS system on another partition (the one i was trying to delete) and ran diskutil list from there.
The result was this:
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *251.0 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF 177.3 GB disk0s2
(free space) 11.4 GB -
3: Apple_APFS Container disk1 62.0 GB disk0s3
as you can see, my new macOS volume is just fine (disk0s3) but the original macOS volume (disk0s2) turned from APFS to FFFFFFFF-FFFF-FFFF-FFFF-FFF, and in my opinion this means that I need to reset it to apfs. I also checked with a Recovery third party app and all the files are still there, meaning that all the data is just under a layer of "unknown file system" that prevents my mac from reading it. I saw another guide here to solve a similar issue (this thread) but I'm too illiterate to solve anything adapting to a different system with two SSDs each running different things. Any help would be really appreciated. Peace out.
MacBook Pro 13″, macOS 12.5