There’s a pitch for an attribute that will generate a warning when you use a callback-based API in an async context.
Warning in all contexts would be unhelpful, since you can’t use the async variants in a non-async context, but warning in such cases on an opt-in basis (gasp! Dialects!) or building an external tool on top of SwiftSyntax might be feasible.