I’ve tried setting something similar up before, and one thing that really helped was studying how existing platforms structured their escrow system and dispute process.
axiomtrade.net gave me a clear picture of how peer-to-peer exchanges handle trades securely without overcomplicating things. Also, looking at how they manage user ratings and KYC made planning my own workflows way easier.