Option 1: Go to https://decoder.link/converter, upload PFX and enter password to convert. Then copy the code to notepad and rename as “xxxprivate.key”

Option 2: using OpenSSL command
Upload your existing PFX or expired PFX to directory, enter below command
openssl pkcs12 -in xxx.pfx -nocerts -out xxxprivate.key -nodes