Someone pretending to be police called me and asked for money

I had some calls with some calls girls and I even paid for some video calls but I made sure that my camera was off.. Yesterday I got a call from someone pretending to be police officer and said that those girls have been captured and there will be a case and I will even be involved in drug case with them as my chat and transaction history was found. Then they said that they were monitoring my usage over internet and everything I was doing when I was talking to these girls but they gave me a chance and didn't do anything but now they are taking action. They said they will put me in jail and my father in jail and everything. I was afraid and said that I don't want it. Then he said that I will have to pay fine amount while I am on call with him. Out of fear I payed that. Then after some time I got a call saying that I will have to pay more because they will give to his superiors and other staff to completely remove my name and records from this. I was not thinking straight so I called my friends and they instantly said I was scammed. I went to police stations and everywhere I went they said that yes I was scammed it's a regular practice of them. I have complained on cyber crime. I told my mom about it but I couldn't tell her about call girls so I said that it was I group I joined online in which these nudity stuff was happening. My mom also got scared what if it's real but everyone said its scam. I even got with some powerful people who were friends of my friends and they also said that's it's a scam just relax. I was afraid how did they got my number and all. Maybe because of my UPI. But I am very afraid.. I know it's not real but I am still in stress and little depressed about the situation. They pretended like it's so real. Talking to each other. Saying talk so sir and then a different guy talks. Just pretending like everything is real. I am literally afraid even though I know it was a fraud.