The current validation of SPDX expressions includes the lookup of SPDX and LicenseRef-scancode-* items in the database.
It would be useful to also assume custom LicenseRef-* items as valid that are not starting with LicenseRef-scancode-*.
This changed behavior could be achieved by having a new bool parameter like "allow_custom_licenserefs" with False as default to mark existing behavior.