Heat olive oil in a large skillet over medium heat, add shallots and cook for a few minutes, stirring occasionally, until soft. Add garlic, stir and sauté for about a minute, just until fragrant.
Add the zucchini and sprinkle with 1/2 teaspoon of salt. Cook for about 15 minutes, stirring often, until zucchini is soft. If it’s sticking to the pan, lower the heat and add a few tablespoons of water. When cooked remove from heat.
Meanwhile, bring a large pot of salted water to a boil. Toss in the pasta and cook for 10-15 minutes (follow your package directions). Reserve 2 cups of pasta water for later and drain the pasta. Set aside.
In a large bowl, combine ricotta, Parmesan, lemon zest and juice, 1/2 teaspoon salt and a few grinds of pepper. Pour over some of the pasta water, about 2/3 cup, and stir to combine. Keep adding pasta water until you have a creamy sauce. Taste and adjust seasoning.
Add pasta to the sauce and stir to coat. Fold ricotta-covered pasta into your zucchini. Keep stirring until it’s evenly mixed.
Serve with extra Parmesan on top and fresh basil. Store leftovers in the refrigerator for up to a day.