Prefer not to use SeqCst. A Release store and an Acquire load suffices here. (I suppose I don’t remember which orderings loom supports. Edit: looks like it should work fine, even if there are certain edge cases where loom would not detect UB.)
A release fence before a relaxed store basically makes that store a release store. An acquire fence after a relaxed load basically makes that load an acquire load. (Edit: my original comment accidentally swapped before<->after for release/acquire fences.)
Have you read Mara Bos’ Rust Atomics and Locks book, as is the usual recommendation?
Wait does it? If thread 2 executes the fence but gets suspended right afterwards, then thread 1 stores *ptr and flag, then thread 2 wakes up and reads just flag... it isn't guaranteed to see *ptr is it?
One puts it where the academic paper that you're relying on that explains why you need SeqCst here, and not Release (which goes before the store) or Acquire (which goes after the load) tells you to.
If you don't have an academic paper in hand that explains exactly why you need SeqCst and not Acquire/Release, you should generally avoid using it - it's both an expensive guarantee to provide (especially on high core count multi-socket systems) and weaker than the name implies.