From what I've learned this morning, Twitter/Musk has deliberately disabled embedding, that's what caused this issue a few weeks ago.
There is a third party add-on which other XenForo users claim can sort it, I need to find the time to play with it. Regrettably, if Musk leaves embedding broken...