Huh? First, the bank can’t possibly price future interest rates into the price of a fixed loan as they’re by definition unknown. Second, we’re talking about the economic model of which is better for consumers. It assumes no refinancing to lower your interest rate down the road, which is a pretty big caveat.
Known in the sense that they know it’s possible, sure. Known in the sense that they know what the likelihood of any given rate increase is over 15-30 years (and are therefore capable of pricing it in)? No.
“Priced in” has a very specific meaning, it’s not a generic term for being aware that something might happen.
The derivatives market for hedging interest rate risk is fairly liquid. They can add the cost of an appropriate hedge (according to their risk appetite) into the price of the loan.