Will I lose my federal loan forgiveness benefit if I refinance?

Yes. Only federal loans offer loan forgiveness. By refinancing, your loan becomes a private loan.