Mr Abd El Fattah had been the most prominent of Egypt’s political prisoners, with human rights groups saying he had been unfairly detained for 12 years, with his latest conviction being for sharing a Facebook post about torture in the country.

The 44-year-old is a dual national, who was granted UK citizenship in December 2021 through his London-born mother – when the Conservatives were in power and Dame Priti Patel was home secretary.

His release from prison followed a long campaign by his family – backed by celebrities such as actors Judi Dench and Olivia Colman – and lobbying by the British government.

Mr Abd El Fattah flew to the UK to be reunited with his 14-year old son in Brighton on Boxing Day, but social media posts originally made in 2012 quickly resurfaced.

In one, Mr Abd El Fattah appears to say he considers “killing any colonialists and specially Zionists heroic, we need to kill more of them”.

Another appears to say, “I am a racist, I don’t like white people”, and in another he is accused of saying police do not have rights and “we should kill them all”.

The Board of Deputies of British Jews said the case was of “profound concern” and demonstrates an “astonishing lack of due diligence by the authorities”.

Adrian Cohen, the board’s senior vice-president, said: “His previous extremist and violent rhetoric aimed at ‘Zionists’ and white people in general is threatening to British Jews and the wider public.”

Shadow justice secretary Robert Jenrick said Mr Abd El Fattah’s social media showed he had “extremist views that are completely incompatible with British values” and he should “be made to live in Egypt or frankly anywhere else in the world”.

Reform UK leader Nigel Farage said previous Conservative and Labour governments had “opened our doors to evil people”, adding that he would change the law to strip Mr Abd El Fattah of his British citizenship and have him deported.

Mr Abd El Fattah has “unequivocally” apologised for the tweets, saying the comments were “expressions of a young man’s anger”.

However, within hours of his apology, BBC News established that his Facebook account had liked another user’s post which described criticism of him as a “relentless smear campaign” being waged by “the richest man in the world, a couple of Middle East intelligence services, and a few Zionist organisations”.

Stripping a person of their British citizenship has typically only been done in cases linked to terrorism or serious organised crime where someone is deemed a national security threat.