Dice the onion, carrots, and celery into even 1/4-inch pieces, mince the garlic, rinse and drain the beans, roughly chop the spinach, and grate the Parmesan.
Heat the olive oil in a Dutch oven over medium heat, then cook the onion, carrots, and celery with the salt for 8 to 10 minutes until soft and translucent.
Stir in the garlic for 30 to 60 seconds, then cook the tomato paste until brick red, about 2 minutes, and bloom the thyme and red pepper flakes for 15 seconds.
Add the diced tomatoes and scrape up any browned bits, then stir in the beans, broth, Parmesan rind, bay leaves, and rosemary and bring to a gentle boil.
Reduce the heat to medium-low, partially cover, and simmer for 25 minutes, stirring once or twice, until the carrots are tender and the broth is savory.
Remove the Parmesan rind, bay leaves, and rosemary stems, then pulse with an immersion blender 5 to 7 times until about one third of the soup is creamy.
Return the pot to medium heat, stir in the spinach a handful at a time, and cook 3 to 4 minutes until wilted, then stir in the lemon juice and black pepper and adjust the salt.
Ladle into warmed bowls and top each with grated Parmesan, chopped parsley, a drizzle of olive oil, and extra red pepper flakes if you like.