Using jinja's custom filters

is there any way to use (and register) a jinja custom filter inside dbt?

I would like to slugify some col names (we generate dynamic col from row’s values.