I used a shallot in this recipe because they have a really unique flavor that you can't replicate. You can easily swap an onion. I would suggest using a sweet onion because it's going to be the closest match to the shallots. If you haven't tried using shallots before, definitely give it a try though if you can.