I’ve twice had gaps from flying of around 2-3 years (the first time because I lived in a country which prohibited private flying and the second because of work). I’d certainly echo the opinions above that you need to spend time studying to get back up to speed and get the most out of the lessons, knowing the speeds, circuits and even listening to some atclive etc. The biggest hold back is the self doubt, but on both occasions I’ve found wonderful instructors keen to help. With preparation it won’t take long to be solo again,