In a skillet over medium-high heat, add the olive oil and onions and stir vigorously to avoid scorching. Add the oregano and season with salt and pepper. Continue stirring until the onions have a deep brown color. Reduce the heat and continue to cook until the onions are soft, 30 to 45 minutes. Use immediately or refrigerate for up to 1 week.