01 -
Pour the canned tomatoes with their juices into a large bowl. Using clean hands, tear the tomatoes into approximately 1.25 cm pieces. Set aside.
02 -
Heat olive oil in a large ovenproof skillet over medium heat. Add the chopped garlic and cook, stirring, until fragrant, about 30 seconds.
03 -
Add the tomato paste to the skillet and cook, stirring constantly, until it darkens and begins to stick to the pan, 1 to 2 minutes.
04 -
Add the torn tomatoes with their juices, oregano, red pepper flakes, and salt to the skillet. Bring to a boil over medium-high heat, then reduce to medium-low and simmer, stirring occasionally, until the sauce reduces and thickens slightly, 10 to 15 minutes. Taste and add sugar for additional sweetness if desired.
05 -
Stir in the drained cannellini beans. Cook, stirring occasionally, until the beans are heated through, 1 to 2 minutes. Taste and adjust salt if necessary.
06 -
Preheat the broiler to high. Sprinkle mozzarella and Parmesan evenly over the bean mixture. Transfer the skillet to the oven and broil, monitoring closely, until the cheese is bubbling and golden brown, 1 to 2 minutes.
07 -
Scatter fresh basil leaves over the top before serving.