Lesson is a spell subtype found on some instant and sorcery cards in the Strixhaven set. The Lesson subtype has no special rules associated with it.

Artwork
Loading artwork…
Containment Breach
Strixhaven: School of Mages · #125 · EN
Nonfoil—Foil—
Card rules
Destroy target artifact or enchantment. If its mana value is 2 or less, create a 1/1 black and green Pest creature token with "When this token dies, you gain 1 life."
For pestkeepers, there's no sound more disheartening than breaking glass.
Uncommon · Illustrated by Campbell White
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pioneer Legal
Timeless Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
Although you may want to include Lessons in your sideboard if you're playing with cards that instruct you to learn, Lesson cards can be included in your main deck like other instant or sorcery cards.
If Containment Breach resolves, and the target artifact has a mana value of 2 or less, but it wasn't destroyed (perhaps because it has indestructible), you will still create a Pest.
If the artifact or enchantment is an illegal target as Containment Breach tries to resolve, it won't resolve and none of its effects will happen. You won't create a Pest.