Over medium heat, fry onion in a little olive oil until soft. Add garlic and fry for a minute before adding the anchovies (optional), habanero, tomatoes and brown sugar.
Season with freshly ground salt and black pepper (go easy on the salt if you've added anchovies) and add the thyme sprigs. Cook for 30 to 45 minutes, adding a little water as / if needed.
While the tomatoes are cooking, cook your pasta according to package instructions. Before draining, add half a cup of the pasta water to the tomato sauce.
Add half the basil and parsley to the sauce, stir through and remove from heat.
The next step is totally optional but totally worth it and looks pretty too. Add the feta together with some tomatoes and lemon halves to a very hot griddle pan. Sprinkle a little sugar over the tomatoes and fry until the outsides have caramelized.
Mix the pasta with the sauce, add the fried tomatoes and feta, some parmesan and the remaining basil and parsley and enjoy!