Hi,
You can create new group policy preference to create the regkey and apply the following WMI filter:
Select * from Win32Reg_AddRemovePrograms where DisplayName like '%office%2019%'
You can create one GPO and apply many WMI filter on Item Targeting level:
Please don't forget to mark helpful reply as answer