I decided to change a bit of a detail, introducing Water! When touching water, you can't dash or run as normal.
Thanks @griffpatch for the tutorial Griffpatch Platformer Series Enhanced.