I'd like to have a pet, but I don't have...

Hello,
we can say for example “I’d like to have a brother, but I don’t have anyone”. But how would we say it with a pet for example “I’d like to have a pet, but I don’t have…”?

“Anyone” is incorrect in this usage. For both sentences, you need to say “I don’t have one”