The filing fee for a divorce petition or complaint is approximately $150 in most counties.
You can find a full list of court costs here: Filing Fees | Clerk Of Court's Office (charlestoncounty.org)
These fees are collected by the government and are in addition to any service or legal fees charged by a lawyer.