Sure but that's pretty straight forward if it's a 50amp panel. Just swap the external wall plug and run 4 conductor wire from the new plug to the panel...then it's 4 wires connected and you are off to the races.
If the panel needs to be replaced, you have to do the same plus:
- Buy and install new panel (hopefully, you can find one the same size so you don't have to do cabinet work).
- You need to disconnect and reconnect all the 120v circuits.
- Most newer panels include all the 12v circuits in a separate section of the panel, so those all have to be disconnected and reconnected to the new panel.
Not impossible but probably 3-4 times the cost if you pay someone to do it...and a lot more opportunity to mess something up in the process.
Another complication is many of the newer units (OP did mention 2023) , it has an electronic touch screen control panel you have to integrate.