Your concern is well-founded. You need to be affiliated to the statutory healthcare system in an EU member state to be covered by the EHIC system. Citizenship as such is irrelevant.

That also means that it will still be possible for British citizens to get a EHIC, *provided they reside in the EU* (whether under the transition regime from the withdrawal agreement or as a third-country national outside of EU law).