Heat the oven to 400°F and butter a 2-quart (8x8 or 9x9-inch) baking dish. Bring a large pot of well-salted water to a boil.
Cook the tortellini for 1 minute less than the package directions, usually 2 to 3 minutes, then drain. They'll finish cooking in the oven.
Melt the butter with the thyme in a large saucepan over medium heat. Whisk in the flour and cook for 1 to 2 minutes. Slowly pour in the warm milk, whisking constantly, and simmer for 4 to 5 minutes until thick enough to coat a spoon. Whisk in the mustard, nutmeg, salt and pepper.
Take the pan off the heat and stir in 1 1/2 cups of the cheddar and 1/4 cup of the Parmesan until smooth. Stir in the spinach until it wilts.
Gently fold the tortellini into the sauce. Spoon half into the baking dish, dot with the ricotta, then add the rest. Sprinkle the remaining cheddar and Parmesan (and turkey bacon, if using) over the top.
Bake for 18 to 20 minutes, until bubbly and golden on top. Let it rest for 5 minutes before serving.