When making a custom advancement using the trigger minecraft:item_used_on_block, the advancement doesn't work. A custom advancement with this trigger won't appear as a viable possible advancement, like the JSON format is wrong.
Works in 1.19.4, but not 1.20.1
The JSON format for this advancement trigger was changed in 23w18a. See the changelog for the specific details, including a migration guide.