just wrote an issue to you, got blocked by cloudfare, no clue why. Anyway:
JCE PRo 2.9.54 keeps breaking code. I will in sert the code here, i suspect that is why i got rejected.
Plesase have a look at the attached pngs, they will explain that the editor is stripping part of the scripts in the code on joomla 4.0
best regards
Noel Magermans