This spice has a unique flavor; you must try not to substitute it with anything else. It's not a very expensive spice and is easily available in most grocery stores or online, so having some in your pantry will help. But just in case you are short of it, here is an article by The Spruce Eats that lists 6 substitutes you can use.