rg --type-add 'foo:*.{foo,foobar}' -tfoo bar
You simply make the below into an alias:
rg --type-add 'foo:*.{foo,foobar}'