Issue with OpenSSH Machine Credential Using infra.controller_configuration in AAP 2.4

I am creating machine credentials in Ansible Automation Platform (AAP) 2.4 using the infra.controller_configuration collection. The SSH private key being used is in OpenSSH format. However, when I attempt to use these credentials in AAP, I encounter the following error:

error loading key "/runner/artifacts/<jobid>/ssh_key_data"

nterestingly, when I manually paste the same OpenSSH private key directly into the AAP web console, the credential works perfectly fine.

Could this issue be related to how infra.controller_configuration processes or stores OpenSSH keys? Has anyone experienced similar issues or could suggest a workaround?