Per my research, this issue is not related to SharePoint, it is related to the print function integrated with browse.
According to test, there is no option to print list item detailed panel with JSON formatting.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.