Check the first page of your listing agreement for the contract’s expiration date.
Once that date passes, the contract then becomes expired, your agent no longer works for you, and you are free to hire a new agent.
If you sell your home through a new agent before the listing agreement with your old agent expires, you will have to pay the new agent AND the old agent a full commission. ☹️