A simple substitute for sofrito could be a combination of sautéed onions, garlic, and bell peppers, with optional tomatoes and herbs to mimic the flavors.