Cook the pasta in salted water according to the instructions on the packet. Drain, drain and let cool down a little. Rinse the cherry tomatoes and cut in half. Drain the mozzarella and cut into small cubes. Mix the balsamic vinegar, olive oil, salt, pepper and sugar into a marinade, pour over the warm pasta and let it steep for 30 minutes.
Rinse the basil and shake dry. Then pluck the leaves off and roughly chop them. Fold the basil, tomatoes and mozzarella into the pasta, season again if necessary with salt, pepper and a little pesto. Serve lukewarm.