Partition type for boot drive FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF and more
Note: This answer assumes the missing partition on disk1 was not part of a fusion container.

The answer you posted shows the string NXSB\0\^P\0\0+\M-L\M-;\^B\0\0\0\0. This can be converted to hexadecimal and ASCII values by entering the commands given below.
export LC_CTYPE=&quot;ASCII&quot;
echo -nE &quot;NXSB\0\^P\0\0+\M-L\M-;\^B\0\0\0\0&quot; | unvis | hexdump -Cv

The output from this command is given below.
00000000  4e 58 53 42 00 10 00 00  2b cc bb 02 00 00 00 00  |NXSB....+.......|
00000010

The string 2b cc bb 02 00 00 00 00 when byte reversed is the hexadecimal value of 2bbcc2b, which is 45,861,931 in decimal. This means the APFS file system contains 45,861,931 blocks, where a block is 4096 bytes in size. In your case, this can be converted to 512 byte sectors by multiplying by 8. The result is 366,895,448 sectors. In this case, the commands to add the APFS container partition are given below.
diskutil unmountdisk disk1
gpt add -i 2 -b 409640 -s 366895448 -t 7C3457EF-0000-11AA-AA11-00306543ECAC /dev/disk1


Note: If missing partition is part of a fusion container, then the value of 366895448 needs to be reduced by the byte size of the other partition after dividing by 512.