Apart from the HTML5 export mentioned by another commenter, there exists Ruffle[1], a Rust + WASM reimplementation of Flash that can play swf files. It's used a lot on archive.org or on some websites like https://homestarrunner.com.
[1] https://ruffle.rs/