For up to date info, read what it says on the first page of
https://www.spth.gob.es. I assume that you will need to provide adequate proof at Lyon airport.
From what I understand, you will not be able to get an EU Digital Covid Certificate of Recovery because it would still be a day or so too early.
I would probably get a Rapid Antigen test just before the flight which will get you an EU DCC of Diagnostic Test (many people do test negative 12 days past sympton onset, especially when they had been vaccinated before the illness).
When you have a valid EU DCC of any kind (vaccination, recovery, test) you do not need to fill out the SpTH form. You just have to have this adequate proof with you.
As cases like yours are not clearly addressed on the website or in the app (I checked), I could think of another option that would work but would not be quite correct; because you could already fly today with this method (just use your vaccination card to get the SpTH code) ... This is rather odd.
Get well soon!