Ingredient expired but have leftovers from the recipe

Idk if my title makes sense but I have a lactose free cottage cheese that expires on the 10th. I plan on making a Buffalo chicken dip with it (i have to cook it in the oven). If I make the recipe before it expires, can I eat it after the 10th?

Honorary question: can I cook with it on the 10th (or this weekend the latest if it still seems good) and eat it once it’s cooked? Idk how long it’ll be past the expiration date but it’ll be cooked/heated in the oven for the recipe