Darn it!
No, seriously, darn it...that's what one kind of sock repair is called. I've been waiting for ages to haul out that old joke
Since you have the matching yarn and all, you'll be able to do a smooth repair and it will either not show or be really, really hard to see once it's done. Putting new toes and heels in socks is another once-common skill that ought to be revived since sock knitting is so popular now.