Which Verilog / SystemVerilog works?
Your code is read by Yosys. Verilog-2005 works, and so do common SystemVerilog parts: always_ff, always_comb, logic and typedef enum. Interfaces, packages and classes do not work. Use plain modules and ports.
Write your design, then Submit.