Changing the pre commit config to this seemed to do the trick:
# .pre-commit-config.yaml
repos:
- repo: https://github.com/aws-cloudformation/cfn-lint
rev: v1.23.1 # The version of cfn-lint to use
hooks:
- id: cfn-lint
files: final_stacks/.*\.(json|yml|yaml)$