I've had a similar experience just from going on a 2 week beach holiday. Getting back to work was really hard, I remember staring at the screen full of code that I wrote without any idea of what it all meant. It took some real effort and breaking things down into tiny steps to get back into it.