High inflation does not necessarily correlate with higher stock prices.
Stocks have greater competition from higher yield Government bonds. The ability to get a 5% annual yield with "no" risk, means stocks will be discounted accordingly.
Also, if the Fed's terrible Interest Rate increases continue, investors may be forced to sell assets to raise cash. This puts downward, deflationary pressure on asset prices as there are more sellers than buyers.
Those who borrowed short-term money will be forced to retire the debt (deflationary); to sell assets (deflationary) for cash to borrow less or to pay for higher borrowing costs; or default (deflationary) on debt.
If the Fed continues to raise rates too quickly, there will be a deflationary death spiral ala 2008/2009.
If Government policies don't change, those policies will continue to constrain production, and keep housing and energy costs higher than they would be if increased production was permitted.