Bring a large saucepan of salted water to a boil. Cook the pasta until al dente.
Meanwhile, heat a deep sauté pan over medium-high heat and add the olive oil. Once the oil is shimmering, add the onions and season with a pinch of kosher salt. Cook for 5-6 minutes, stirring occasionally, until browned around the edges. Add the garlic and red pepper flakes (if using), and stir to combine for 1 minute, until fragrant.
While the onions are cooking, pour the vegetable broth (or water) into a measuring cup or bowl and add in the tamari or soy sauce and flour. Whisk to combine until all the flour is dissolved.
Pour the vegetable broth-flour mixture into the onion-garlic mixture and whisk to combine, ensuring there are no flour clumps. It should thicken almost immediately. Reduce the heat to medium-low and pour in the coconut milk or oat milk, tahini, nutritional yeast, paprika, 1/2 teaspoon kosher salt, and black pepper to taste. Bring to a simmer and cook for 5 minutes***, or until the sauce is thickened and very creamy, whisking occasionally.
Stir in the Dijon mustard, and taste for seasonings, adding more salt as needed. Turn on the pan with the sauce to low heat and add the hot cooked pasta. Use tongs to toss the pasta until it's well coated in the sauce and it's all heated through. Garnish with parsley and/or vegan parm, if using.