01 - Heat olive oil in a large soup pot over medium heat. Add ground beef and cook, breaking it into small pieces, until well browned. Drain excess fat if necessary.
02 - Add diced onion, sliced carrots, and celery to the pot. Sauté for 4 to 5 minutes, stirring occasionally, until the vegetables begin to soften.
03 - Stir in minced garlic, dried basil, oregano, and thyme. Sauté until fragrant, about 1 minute.
04 - Incorporate canned diced tomatoes, tomato sauce, and beef broth. Mix well and bring to a gentle simmer.
05 - Add pasta shells or ditalini to the pot. Leave uncovered and simmer for 10 minutes, stirring occasionally, until the pasta is nearly tender.
06 - Add frozen peas and, if using, baby spinach during the last 2 to 3 minutes of cooking. Stir frequently until all vegetables and pasta are fully tender.
07 - Adjust seasoning with salt and black pepper to taste. Ladle the soup into bowls and garnish with grated Parmesan if desired. Serve immediately while hot.