Expired peanuts while pregnant

I was wondering if it’s ok to eat expired peanuts . I ate at eat N park and the peanuts tasted weird . Is it ok to eat expired peanuts ?