Selling a property to a tenant - shared ownership

Does anyone have any experience of an arrangement whereby a residential tenant buys (say) half the beneficial interest in a rented property and the landlord retains (and receives rent on) the other half?

this is common with some housing associations, so see a solicitor to get advice on how to set it up

Colin3 - there’s a misunderstanding here. I’m not asking how to set it up. I’m asking if anyone has practical personal experience of doing this.