The ECHR has nothing to do with the EU.
Or as a EU member can you withdraw from the court without consequences?
They are intertwined.
EU laws are adjudicated by the Court of Justice of the European Union.
https://en.wikipedia.org/wiki/European_Court_of_Justice
The ECHR has nothing to do with the EU.