Hi @Patrik Lindell,
Thank you for posting in the community.
When you restore a file in SharePoint, SharePoint doesn't remove the earlier version you just restored. It creates a copy and makes it the latest version. The version history information is generated by SharePoint and we cannot modify this feature for the time being, for example to make it show that the current version is a recovery of a previous old version. It cannot be modified in the Check in/Check out function either.
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.