Totally acceptable. The restriction is only on eating non-kosher foods (basically), not anything else related to them.
https://pubmed.ncbi.nlm.nih.gov/10618731/
Even if that weren’t the case, saving a life takes precedence over almost all other laws in Judaism (exceptions are murder, incest, and idolatry), so it would be allowed under that.