I’m sorry I don’t understand quite what you’re asking.
Do you want to filter your BGP Sessions with an upstream to not learn that /24?
Are you the victim of a BGP Hijack? (Someone else annoucing your /24)
It sounds like you want to filter routes you’re learning and to drop a specific prefix, which yes, Vyos can do. This previous forum post provides a pretty good clear example.
I’m not sure if I’ve helped though because I’m sorry it’s not clear to me what you’re trying to do