Hello
- According to the screenshot, the middle partition is recovery parition. We may refer to the following link to recreate the recovery partition.
diskpart - How to move the recovery partition on Windows 10? - Super User
- The built-in disk management tool only support to extend the disk space to the partition after the primary partition. We may try third party disk tool to extend the disk space such as diskgenuis (you can google it)
Best Regards,
Wesley Li
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.