Question: what happens when a pub lease expires?
Answer: At the end of a lease, the property reverts to the freehold owner. As for being entitled to any money back / the 'deposit' aspect, no there's none of that. And a lease with no time left to run has zero resale value. Usually for residential property you would be unwise to consider a leasehold less than 100 years.