Place a large pan over medium heat and add the olive oil. Once the olive oil is warm, add the shallots. Stir continuously until the shallots are light brown, about 5-10 minutes. Use a slotted spoon to transfer the shallots into a bowl, leaving the oil in the pan.
Turn the heat to medium low. Add the garlic, sage, and thyme. Stir to coat everything in oil and continue to stir as the garlic softens, about 2 minutes.
Add the brown sugar, oregano, and salt. Continue to stir and cook until the garlic is light brown and the sugar has dissolved.
Turn off the heat and pour the crispy shallots back into the pan. Stir to combine everything together. Transfer to a bowl to cool completely. Store in a jar or an airtight container at room temperature.