If you didn’t agree to pay that in any signed up front agreement, I’m willing to bet that if you tell the agent that you aren’t paying it, they will remove it immediately.
I hope that you aren’t using a lender that the agent reccommended.
Do you care to disclose the loan fees that you are being charged ? Did the agent suggest that you ask seller to contribute to closing costs ?
How long did you shop with this agent and did you determine the purchase price or did the agent suggest one ?
How many counter offers were involved ?
There are people on this board that can probably save you $$$ on all aspects of this transaction, or at least give you helpful advice.