Roth IRA not eligible

I recently contributed $7,000 to my Roth IRA, only to later discover that I was not eligible to contribute to this account. Shortly after, I withdrew the same amount. I have since received a Form 1099-R from Fidelity for this transaction. I would like to know if this can be treated as a return of excess contribution rather than a distribution.

Do you think I need to start this process with Fidelity first: https://www.fidelity.com/retirement-ira/excess-ira-contributions