The Strasbourg-based European Court of Human Rights is completely separate from the EU - and the UK’s membership was not affected by Brexit.
In fact, the UK helped set up the European Convention on Human Rights, which the court enforces, in the aftermath of the Second World War.
Winston Churchill was instrumental in shaping the 1950 pact, agreed in Rome.