KeyStore Explorer (https://keystore-explorer.org/) could be used to extract the private key into a PEM file.
Open the certificate PFX file that contains the public and private key.
Right-click on the entry in KeyStore Explorer and select the Export | Export Private Key
Select OpenSSL from the list
Unselect the Encrypt option and choose the location to save the PEM file.