Capital gains

Hello,

My wife and I inherited a house in 2015 and lived there until 2022. We sold the house this year. Would we owe any capital gains tax, since this was our primary residence?