Investing in Ex Ante Regulation: Evidence from Pharmaceutical Patent Examination