IgnoringInactive
IgnoringInactive[patt] is a pattern object that, for purposes of pattern matching, ignores occurrences of Inactive in both patt and the expression being matched.
Examples
MatchQ[Inactive[Plus][1, 2], IgnoringInactive[Plus[1, 2]]]Cases[{Inactive[f][x], g[x]}, IgnoringInactive[f[_]]]Please visit the official Wolfram Language Reference for more details.