title: dbt (data build tool) jinja modules - 'dict object' has no attritute 're'
body: <p>According to DBT's docs on modules to use within jinja functions - <a href="https://docs.getdbt.com/reference/dbt-jinja-functions/modules" rel="nofollow noreferrer">https://docs.getdbt.com/reference/dbt-jinja-functions/modules</a> - <code>modules.re</code> should be available. However, there is this macro I am working with:</p>
  <pre><code>{% macro camel_to_snake_case(camel_case_string) -%}
  
  {{ modules.re.sub('([A-Z][a-z]|[A-Z]*[0-9]+)', '_\\1', modules.re.sub('([A-Z]+[A-Z]([a-z]|$))', '_\\1', camel_case_string)) | trim('_') | lower() }}
  
  {%- endmacro %}
  </code></pre>
  <p>and whenever a script is run that uses this macro, i receive the error:</p>
  <pre><code>Running with dbt=0.17.0
  Encountered an error:
  Compilation Error in model model_using_macro (models/model_using_macro.sql)
    'dict object' has no attribute 're'
  </code></pre>
  <p>Do I need to install something in order to access the <code>modules.re</code> function? Maybe the base dbt I have installed doesn't have this <code>modules</code> at all? Perhaps there is a way I can check the output for <code>modules</code> to see why <code>re</code> is missing, and what else might be available / missing? I'm not sure why else this error could be happening?</p>