I had this exact same scam a couple months ago! I never figured out how they spoof the courthouse’s number though — any idea how they do that?
If you're interested in what's being done about it and the history of how it got this way, the STIR/SHAKEN wiki article has good details: https://en.wikipedia.org/wiki/STIR/SHAKEN