Cook spaghetti noodles (or pasta of choice) according to package directions. Meanwhile, in a large skillet, heat the olive oil over medium heat. Cook the garlic and shallots (or onion) for 3 to 4 minutes, or until soft and fragrant.
Stir in oregano, red pepper flakes, sun-dried tomatoes, and tomato paste. Cook for 1 to 2 minutes, allowing the tomato paste to deepen in color.
Add chickpeas, oat milk or almond milk, and broth. Bring to a simmer and let cook uncovered for 12 to 15 minutes, stirring occasionally, until the sauce thickens.
Season with salt and black pepper to taste. Simmer for 1 to 2 more minutes.
Spoon over cooked spaghetti, and top with fresh basil before serving.