Cook the Bacon: Heat the olive oil over medium heat in a large soup pot. Add the diced bacon and sauté, stirring occasionally, until the bacon is crisp. Remove the crispy bacon with a slotted spoon and set aside.
Sauté the Aromatics: Add the diced onion to the pot and sauté for 5–7 minutes, stirring occasionally, until softened and lightly browned. Add the smashed garlic cloves and cook for 1 minute.
Add the Vegetables: Stir in the carrots and celery and sauté for about 5 minutes, until slightly softened.
Simmer the Soup: Add the barley, chicken stock, dried thyme, bay leaves, and diced potatoes. Bring to a boil, then cover and reduce heat to medium-low. Simmer for 35–40 minutes, or until the barley is tender.
Adjust Seasoning: Taste and adjust salt and pepper as needed. Remove the bay leaves before serving.
Serve: Ladle into bowls and top with the reserved crispy bacon and grated Pecorino Romano. Serve warm.