Flatpak-builder lsb_release dependency error

I’m new to building flatpak’s but think I’ve got an okay grip on creating manifest.
a project uses cmake and as lsb_release as a needed dependency.
when I try to compile the project with flatpak I get this error:

CMake Error at CMake/Utils.cmake:238 (message):
  Could not detect lsb_release executable, can not gather required
  information
Call Stack (most recent call first):
  CMakeLists.txt:71 (get_linux_lsb_release_information)

I tried to fix this error by installing the fedora package in the flatpak but I still get the same error:

{
    "name": "lsb",
    "buildsystem": "simple",
    "subdir": "lsb-release_os-release-3.3/",
    "build-commands": ["make"],
    "sources": [
        {
        "type": "archive",
        "url": "https://kojipkgs.fedoraproject.org//packages/lsb_release/3.3/3.fc40/src/lsb_release-3.3-3.fc40.src.rpm",
        "sha512": "986ef66be589db99e10cdbdea7d56c9326a52c1b3e8933f7095f53dcef60423570c88f29aa4d3a0a8a78ea1a2c5ac7bb8101e4e83a98e258518868b8137abce4"
        },
        {
        "type": "shell",
        "commands": ["tar -xvf lsb-release_os-release-3.3.tar.gz"]
        }
    ]
}

can I get information if flatpak-builder or org.freedesktop or kde.platform is supposed to come with lsb_release or not?
and is this issue upstream or in my flatpak?
if it is my flatpak (which I’m pretty sure it is), any tips on how to fix this issue?

I also know a very similar question was asked in #3884 but it didn’t really clear up any questions I had

Build it from source, don’t reuse other distro’s prebuilt packages like that com.slack.Slack/com.slack.Slack.yaml at c0e4eb4d797c0b789f7ce3e70a57c35529b5be98 · flathub/com.slack.Slack · GitHub

thanks for the solution and got it about using distro packages.
I have 1 more question: is there an easy way to search if a flatpak is using a dependency such as in this case? figured out how: just use the search on Flathub · GitHub and it will search all flatpak manifest

also for future readers looking for lsb_release, incase the flatpak linked above stops using it, the .yaml code is:

  - name: lsb_release
    buildsystem: simple
    cleanup:
      - /share/man
    build-commands:
      - make
      - make install INSTALL_ROOT=${FLATPAK_DEST}
    sources:
      - type: git
        url: https://github.com/thkukuk/lsb-release_os-release.git
        tag: v3.3