Leave to cool in the syrup, covered, until ready to use.
Your poached pears are ready.
Remarks
Poaching syrup can be flavored with vanilla, aniseed, lemon zest, etc. etc. Feel free to follow your ideas.
This syrup can be reused several times, and you can even freeze it between uses.
You'll find recipes that recommend using pear trimmings (peelings and hearts) to flavor the poaching syrup before using it. Having tried them with and without, I don't find any marked difference.