Article 21 of the Law — Foreign gender change and marriage
(1) A person’s gender is not to be regarded as having changed by reason only that it has changed under the law of a country or territory outside the United Kingdom.
(1A) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
(2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
(3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
(4) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
(5) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
(6) Nothing in this section prevents the exercise of any right which forms part of assimilated law by virtue of section 3 ... of the European Union (Withdrawal) Act 2018.