Regulating Matching Markets with Constraints: Data-driven Taxation