Sauté the Shallots: Heat the olive oil in a large skillet over medium heat, then add the finely diced shallots and cook for 2–3 minutes, stirring occasionally, until they have softened.
Add the Garlic: Stir the chopped garlic into the softened shallots and cook for about 1 minute, until fragrant, taking care not to overcook it.
Add Lemon and Pesto: Stir in the lemon juice and pesto until they are evenly combined with the sautéed shallots and garlic.
Toast the Orzo: Add the orzo to the skillet and cook for 1 minute, stirring so the pasta becomes lightly toasted and coated with the flavorful mixture.
Simmer the Orzo: Pour in the vegetable stock and bring the mixture to a simmer. Cook for about 10 minutes, stirring occasionally to prevent the orzo from sticking to the skillet. Add the Vegetables: Stir in the drained, bite-size artichoke pieces, sliced sun-dried tomatoes, and spinach. Continue cooking for another 2–3 minutes, just until the spinach wilts.
Finish and Season: Sprinkle the toasted pine nuts over the orzo, then adjust the salt and freshly ground black pepper to taste.
Serve Immediately: Serve the spinach artichoke orzo immediately while it is hot, with the toasted pine nuts distributed over the top.