Heat the olive oil in a large pot or Dutch oven over medium heat.
Add the diced onion, shredded carrots, and celery. Sauté for 6 to 8 minutes, stirring occasionally, until the vegetables are softened and the onions are translucent.
Stir in the minced garlic and cook for 1 minute until fragrant.
Sprinkle the flour over the sautéed vegetables and stir constantly for 1 to 2 minutes to create a light roux, ensuring the flour doesn't burn.
Slowly pour in the chicken broth while whisking or stirring constantly to prevent lumps from forming.
Add the shredded chicken, dried thyme, salt, black pepper, and nutmeg. Bring the mixture to a gentle simmer over medium-high heat.
Once simmering, add the potato gnocchi. Cook for 4 to 5 minutes, or until the gnocchi float to the surface and are tender.
Reduce the heat to low. Stir in the baby spinach and heavy cream. Continue to cook for 2 to 3 minutes until the spinach is wilted and the soup is rich and creamy.
Remove from heat. Stir in the grated Parmesan cheese and fresh lemon juice to brighten the flavors.