Retirement tax questions

No.  A loan is not a withdrawal or distribution.   You do not get a 1099R for a loan.   If you got a 1099R it was not a loan and you need to contact the plan and get it cleared up.