I haven't figured out how to add a custom block or any block to the vanilla block tags
I believe it has most to do with these files.
net.minecraft.tags.BlockTags
net.minecraft.data.tags.BlockTagsProvider
Example, making bamboo grow on a modded block.