What is the reaction between piperine and concentrated sulfuric acid?
I think OP is confused with the colorimetric method of detection of piperine, which uses the concentrated sulfuric acid as one of reactant with chromotropic acid, 1,8-dihydroxynaphthalene-3,6-disulfonic acid (Chromotropic Acid Test; Ref.1 &amp; 2). Accordingly, this colorimetric method, developed in 1965, relied on hydrolyzing the methylenedioxy group of piperine by chromotropic acid in the presence of concentrated sulfuric acid to formaldehyde, upon which a definite color was developed with chromotropic acid (Ref.3). Color intensity is proportional to the amount of piperine present. Water inhibits color development, but a small amount of methyl alcohol is necessary.

Note: It is good to know that chromotropic acid test is very sensitive to presence of formaldehyde and detect them in very low concentrations (Ref.4). It is also fact that chromotropic acid is specific to formaldehyde (Ref.2).

References:


Leila Gorgani, Maedeh Mohammadi, Ghasem D. Najafpour, Maryam Nikzad, “Piperine—The Bioactive Compound of Black Pepper: From Isolation to Medicinal Formulations,” Comprehensive Reviews in Food Science &amp; Food Safety 2017, 16(1), 124-140 (https://doi.org/10.1111/1541-4337.12246).
Clark E. Bricker, Hilding R. Johnson, "Spectrophotometric Method for Determining Formaldehyde," Ind. Eng. Chem. Anal. Ed. 1945, 17(6), 400–402 (https://doi.org/10.1021/i560142a021).
Horace D. Graham, “Quantitative Determination of Piperine. I. The Komarowsky Reaction,” J. Food Sci. 1965, 30(4), 644–650 (https://doi.org/10.1111/j.1365-2621.1965.tb01818.x). 
Jingping Zhang, David Thickett, Lorna Green, "Two Tests for the Detection of Volatile Organic Acids and Formaldehyde," Journal of the American Institute for Conservation 1994, 33(1), 47–53 (doi:10.2307/3179669).