The ornamental design for a confection with pattern, as shown and described.
FIG. 1 is a side view of a confection with pattern; and,
FIG. 2 is a perspective view of the confection with pattern.
The broken lines illustrate portions of the confection with pattern that form no part of the claimed design. Surface area between the broken and solid lines forms no part of the claimed design.