It is the passengers responsibility to understand the status of a country that they are returning to the UK from. Further information can be obtained from https://www.gov.uk/guidance/transport-measures-to-protect-the-uk-from-variant-strains-of-covid-19#travel-bans-to-the-uk---banned-countries