If I had 100k in short term capital losses in 2022 can I use that to offset 100k of short term capital gains in 2023?
Yes. See https://www.irs.gov/taxtopics/tc409