I tried naming one of my signals "dist", but Yosys failed to parse the resulting file.
Looking at its source code it uses the SystemVerilog reserved word list, even when parsing regular Verilog: https://github.com/YosysHQ/yosys/blob/main/backends/verilog/verilog_backend.cc#L133-L155
I think it'd be better to update 'reserved_words.ml' and include the SystemVerilog list too.
If you want I can send a PR that does that.