Here's a Python async function. What would the Elixir version be like?

You are almost there, you forgot the if part:

paths
|> Enum.filter(&String.ends_with?(&1, ".md"))
...