Retirement tax questions

Thank you for your reply. I found out only now when trying to amend my return with the 1099-R information that it had been considered a distribution and not a loan. It was repaid as I said, and I am still employed with the same company, nothing has changed. No letter was received from the plan either and I spoke to an agent on the phone who guided me when taking out the loan. Nothing was mentioned about not being qualified.

Further, I took out another loan upon satisfying the repayment of the first loan. The portal confirms the first loan is paid off.