I say you split it into weekly baby steps, something like this:
Week 1- Start with an easy flat ride of 10-15 km.
- Relax for a day
- Another easy ride of 15-30km with some small elevation gain(~50-100m)
- Relax
- A longer ride of 30-50km with a higher elevation gain (~100-250m)
- Relax
- Relax
Week 2- A flat ride of 15-20 km.
- Relax for a day
- Another ride of 20-50km with some elevation gain(~100-200m)
- Relax
- A longer ride of 50-100km with a higher elevation gain (~200-350m)
- Relax
- Relax
and keep increasing the numbers as the weeks pass by.
I really hope you get your motivation back and wish you all the best, and good luck!