Prepare pasta according to package directions.
While pasta is cooking heat olive oil over medium heat in a large skillet. Add shallots and garlic to skillet and sauté until fragrant, about 30 to 40 seconds.
Add lemon juice, wine or vegetable stock, reserved pasta water and capers, reduce heat and simmer until sauce starts to thicken.
Add cooked pasta to skillet and toss to coat, remove from heat and transfer to serving bowl or if you prefer serve from skillet.
Season to taste with salt.
Toss in the tomatoes, parsley and red pepper flakes.
Serve immediately.