filters – Add attribute to script loaded by the theme

I was looking for a method to add the data-cfasync=”false” attribute to a javascript loaded by the theme itself.

My theme load the script

<script type="e350ac6f596d90da70624b6d-text/javascript" src='https://thegroovecartel.com/wp-content/themes/zeen/assets/js/jquery.fluidbox.min.js?ver=2.0.5' id='jquery-fluidbox-js'>

And I would like to have

<script data-cfasync="false" type="e350ac6f596d90da70624b6d-text/javascript" src='https://thegroovecartel.com/wp-content/themes/zeen/assets/js/jquery.fluidbox.min.js?ver=2.0.5' id='jquery-fluidbox-js'>

Basically just the inclusion of my attribute letting everything unchanged

I’ve seen this solution Adding Additional Attributes in Script Tag for 3rd party JS but it’s 7 years old and doesn’t seem to work for me.