There are two distinct 7 year deadlines in Part-FCL.
One applies to the IR whose 7 year deadline can be based on the validity of an IR issued by any ICAO contracting state. FCL.625(e).
The other applies to the ATPL exam pass. This remains valid for the issue of an ATPL for up to 7 years after the IR has lapsed. FCL.025(c)(2)(i). This is not satisfied by any ICAO IR, though I think there's a good case for an article 71 exemption.