This recipe has not been tested using peppermint extract as a substitute for the candy canes. However, sometimes extracts can have a slightly chemical/ artificial flavor that is strong and unenjoyable. Using candy canes gives a more vibrant, pure peppermint flavor.