Cook the pasta in a large pot of salted boiling water according to package directions. Reserve a cup of pasta water before draining.
Heat the olive oil in a large skillet over medium-high heat and cook the onion for 4-5 minutes until softened.
Add the garlic and cook for a further 30 seconds.
Add the can of tomatoes, Italian herbs and red pepper flakes (if using), bring to a simmer then lower the heat slightly and simmer for 10 minutes, until slightly reduced. Season with salt and pepper to taste.
Lower the heat and add the goat cheese, breaking it up with your hands. Let it melt into the sauce then mix through.
Add the fresh basil and then add the cooked pasta, a splash of pasta water and toss well.
Serve with freshly grated parmesan if you wish.