My code looks right but won’t submit?

This is very strange.
I have copied and pasted your code (the .red part only) and it passed.

Maybe you should report to the staff?