Season the beef stew meat with salt and pepper, then toss it with the flour until lightly coated.
Heat the olive oil in a large Dutch oven over medium heat. Add the diced bacon and cook until crisp. Remove the bacon with a slotted spoon and set it aside.
Add the beef in batches to the Dutch oven and brown on all sides. Remove the beef and set it aside with the bacon.
Add the pearl onions and carrots to the pot. Cook for 5 minutes, stirring often, until the onions start to soften.
Stir in the mushrooms and garlic. Cook for another 3 minutes until the mushrooms release some liquid.
Add the tomato paste and stir to coat the vegetables. Pour in the red wine and beef broth, scraping the bottom of the pot to loosen any browned bits.
Return the beef and bacon to the pot. Add the thyme sprigs and bay leaves. Bring the mixture to a simmer, then cover and cook on low heat for 2 hours until the beef is tender.
Remove the thyme sprigs and bay leaves. Taste and adjust salt and pepper if needed before serving.