A transgender woman with HIV who participated in an anti-government protest in Cuba in 2021 has been released from prison.