Play in Jockey wheels Sram X7 rear derailleur
the derailleur is slightly bent.


It's more likely that the derailleur hanger is bent. Those are often replaceable because they're a (deliberately) small and somewhat fragile part that's designed to be cheap and easy to replace.

The first step is to see if you can straighten it. Any bike shop will have the tool for this, and it's something you can't do without the tool as the adjustment has to be quite precise. This answer has more details.

It's very unlikely that you've bent the derailleur. Unfortunately an impact powerful enough to bend a derailleur is generally going to also bend the hanger. So the advice is the same - take it to a shop or buy the above tool. Once the hanger is straight you can try to bend the derailleur back if that is also bent.