It can't do, otherwise the famous Cillessen-Krul substitution couldn't have happened, as Cillessen wasn't injured or ill, unless the Laws have changed in the meantime.
Yeah, sorry, had forgotten.but that was a sub that was made during extra time
And of course this does not apply to a player off the field of play who has been excluded from the list of kick takers to equalise numbers with opponents.provided that the GK cannot continue and the team has an available substitution left that it can use.
And of course this does not apply to a player off the field of play who is been excluded from the lust of kick takers to equalise the number with the opponents.
The point of the OP question was, why use the word 'replace' to mislead everyone while there is a perfectly good word that is defined and everyone is familiar with, 'substitute'? That is in the OP Q&A or Law 10.