I transferred money from a HSA rollover account into a CD. I received a distribution form from the bank. Was this a "qualified" investment or a taxable distribution?

I know some HSA's allow investments through brokers (e. g. Schwab). Is what I did considered a taxable distribution, or an allowed investment? If a taxable distribution, can I transfer the money back in to the HSA account prior to April 15th 2024 without a penalty?