[reggen] Fixes to validate.py that broke document generation
[reggen] Fixes to validate.py that broke document generation

lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan