Heat a large, deep skillet or pot over medium heat.
Add the olive oil, and once the olive oil is hot add the garlic, onion and chili flakes, turning the heat to medium low.
Saute until the onions are soft and the mixture is fragrant.
Deglaze the pan with the wine until it cooks off.
Add the stock and the pasta and stir to make sure the pasta is submerged in the stock.
Cover the pan and let cook for about 4-5 minutes, stirring once during this time.
After 5 minutes, add the cherry tomatoes and stir well to combine.
Cover the pan again and cook for another 3-4 minutes, stirring once during this time.
Uncover the pan and toss well. Tear the fresh mozzarella, placing it over the top of the pasta. Sprinkle the fresh basil over the pasta as well.
Remove the pan from the heat and add the lid. Let sit for about one minute for the mozzarella to melt.
Before serving, sprinkle with some additional chili flakes (optional) and/or some freshly cracked black pepper.