Dismissed with prejudice is a final judgment. It means the plaintiff is barred from bringing an action on the same claim.
See a local landlord tenant attorney to determine who the proper parties are and how you can proceed against them.
READ THIS BEFORE CALLING OR EMAILING ME: I am licensed to practice before the state and federal courts in Virginia. We have not established an attorney-client relationship unless we have a signed representation agreement and you have paid me. I am providing educational instruction only--not legal advice. You should speak with an attorney to whom you have provided all the facts, before you take steps that may impact your legal rights. I am not obligated to answer subsequent emails or phone calls unless you have hired me. I wish you the best of luck with your situation.
You need to speak with a civil attorney/landlord-tenant attorney. Dismissal with prejudice may bar you from re-filing. Either way, you want to get it right this time because you've probably already wasted the filing fee once. At some point, it may not be worth it depending on the size of the deposit. Good luck.