Yes, I know what happened, but the Australian govt more or less had to deport him, otherwise their strict Covid policies would have been open to question in a very public way. Nevertheless, maybe a suitable compromise could have been reached, for example Djokovic being tested for Covid twice a day during his stay in Australia.
It would of course have been possible for Djokovic to get vaccinated before he left Serbia, but from what I understand, he has been a rather outspoken anti-vaxxer, so maybe that would not have been an option for him, publicitywise.
In any case, it is a pity. I would very much have liked to have seen him play in the Open.