i have a Big Sur and same problem: "Allow" button doesn't appear in System Preferences..
it is not a solution but maybe a direction for someone else (i have successfully called again once appeared modal dialog with a button to goto Preferences):
reboot into Recovery Mode
run terminal
disable SIP (temporary) $ csrutil disable
reboot in normal mode
run terminal
execute $ sudo sqlite3 /var/db/SystemPolicyConfiguration/KextPolicy
run $ update kext_load_history_v3 set flags = 51 where team_id = 'R2H967U7J8';
push ctrl+D to exit from sqlite
then, if you execute again sudo /usr/bin/kmutil load -p /Library/Extensions/RazerHid.kext you will get prompt dialog again (like first time running)
now you can enable SIP ($ csrutil enable from Recovery mode) and wait until someone will find working solution :))
BTW, sqlite> UPDATE kext_policy SET allowed = 1 WHERE team_id = 'R2H967U7J8'; didn't help too (just for anybody who will find allowed flag in table kext_policy as a good assumption it can help, as i did)