Cook the pasta in a large pot of boiling water according to package directions until al dente.
Drain well, return it to the warm pot, and cover to keep warm.
While the pasta cooks, prepare your greens. For Swiss chard, cut out and discard the tough center ribs. For spinach, simply remove any thick stems. Coarsely chop the leaves and set them aside.
In a large nonstick skillet, heat the olive oil over medium heat.
Add the minced garlic and cook for about 15-30 seconds until fragrant.
Add the chopped Swiss chard and cook, stirring frequently, for about 3 minutes until wilted.
Stir in the ricotta cheese, milk, basil, salt, pepper, and nutmeg.
Continue to cook and stir for another 3-5 minutes until the sauce is smooth and heated through.
Pour the creamy ricotta and chard sauce over the warm pasta in the pot.
Add the chopped fresh tomato and toss gently to combine everything.
Serve immediately, sprinkled generously with shredded Parmesan cheese.
Don't waste the chard stems! Finely chop the colorful stems and sauté them with the garlic for 2-3 minutes before adding the leaves to tenderize them and add extra texture.